94% os-adder

Code Review | OS Adder

WordPress plugin OS Adder scored 94% from 54 tests.

About plugin

  • Plugin page: os-adder
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 5.8.1
  • First release: Aug 8, 2013
  • Latest release: Nov 19, 2015
  • Number of updates: 10
  • Update frequency: every 83.3 days
  • Top authors: trauben-nuss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 764 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼141.72ms] Passed 4 tests

Analyzing server-side resources used by OS Adder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0037.71 ▲4.68
Dashboard /wp-admin3.06 ▲0.0157.86 ▲10.24
Posts /wp-admin/edit.php3.11 ▲0.0147.74 ▲5.88
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.18 ▼583.54
Media Library /wp-admin/upload.php3.00 ▲0.0034.82 ▲6.12

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for OS Adder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,786 ▲19016.33 ▲0.2417.11 ▲7.0646.24 ▼2.12
Dashboard /wp-admin2,970 ▲365.95 ▼0.04144.44 ▼13.14114.83 ▼6.22
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0060.19 ▼5.6888.40 ▲0.83
Add New Post /wp-admin/post-new.php3,726 ▲2,22615.42 ▼3.28472.02 ▲68.38108.62 ▼0.60
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.06164.44 ▼2.34111.38 ▼17.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/os-adder/OS-Adder.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: os-hacks, operating system, body, css, class...

os-adder/OS-Adder.php 92% from 13 tests

The entry point to "OS Adder" version 0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("os-adder.php" instead of "OS-Adder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1112443
PHP11714

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin