94% addfunc-ids

Code Review | AddFunc IDs

WordPress plugin AddFunc IDs scored 94% from 54 tests.

About plugin

  • Plugin page: addfunc-ids
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 5.8.1
  • First release: Jun 28, 2017
  • Latest release: Dec 11, 2018
  • Number of updates: 7
  • Update frequency: every 92.4 days
  • Top authors: joerhoney (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 761 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼147.97ms] Passed 4 tests

A check of server-side resources used by AddFunc IDs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1240.72 ▲19.43
Dashboard /wp-admin3.07 ▲0.0146.22 ▼3.03
Posts /wp-admin/edit.php3.12 ▲0.0142.88 ▼5.38
Add New Post /wp-admin/post-new.php5.43 ▼0.0087.45 ▼579.46
Media Library /wp-admin/upload.php3.01 ▲0.0134.59 ▼4.02

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for AddFunc IDs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8715.89 ▲0.519.76 ▲0.0947.92 ▲1.08
Dashboard /wp-admin2,974 ▲436.03 ▼0.13144.37 ▲0.53109.39 ▼0.38
Posts /wp-admin/edit.php2,743 ▲42.70 ▼0.0264.49 ▼9.3493.35 ▲1.68
Add New Post /wp-admin/post-new.php1,676 ▲6118.88 ▼3.04402.52 ▲122.80104.92 ▼3.06
Media Library /wp-admin/upload.php1,811 ▲635.01 ▲0.02168.34 ▼6.47115.25 ▼4.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just 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/addfunc-ids/addfunc-ids.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: tinymce, editor button, remove id, id attribute, add id

addfunc-ids/addfunc-ids.php Passed 13 tests

The main PHP script in "AddFunc IDs" version 1.0 is automatically included on every request by WordPress
91 characters long description:
Adds a button that allows authors/editors to easily generate ID attributes for subheadings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected864 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG300779
JavaScript115140
CSS211825
PHP142120

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected