84% enigma-buttons

Code Review | e.nigma buttons

WordPress plugin e.nigma buttons scored84%from 54 tests.

About plugin

  • Plugin page: enigma-buttons
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Dec 22, 2014
  • Latest release: Aug 30, 2020
  • Number of updates: 20
  • Update frequency: every 103.9 days
  • Top authors: chemiker (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /3,204 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.93ms] Passed 4 tests

An overview of server-side resources used by e.nigma buttons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.69 ▼1.64
Dashboard /wp-admin3.32 ▲0.0256.05 ▲5.89
Posts /wp-admin/edit.php3.37 ▲0.0247.23 ▼1.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.32 ▼28.04
Media Library /wp-admin/upload.php3.24 ▲0.0234.32 ▼0.13

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for e.nigma buttons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3114.74 ▲0.132.02 ▲0.0242.28 ▼2.17
Dashboard /wp-admin2,206 ▲184.85 ▼0.03123.89 ▲18.8850.17 ▲6.85
Posts /wp-admin/edit.php2,092 ▼01.97 ▼0.0440.52 ▲1.7035.58 ▼1.61
Add New Post /wp-admin/post-new.php1,542 ▲2818.18 ▲0.69659.98 ▼16.1552.57 ▼8.97
Media Library /wp-admin/upload.php1,382 ▼94.20 ▲0.0396.47 ▼1.7250.96 ▲5.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
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 enigmaButtons\\add_action() in wp-content/plugins/enigma-buttons/enigma-buttons.php:18

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)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === enigma-buttons === )
You can take inspiration from this readme.txt

enigma-buttons/enigma-buttons.php Passed 13 tests

The main PHP file in "e.nigma buttons" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
Brings beautiful buttons to your WordPress installation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,738 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP1261466
CSS1031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.33
▷ Minimum method complexity2.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods111.11%
▷ Protected methods00.00%
▷ Private methods888.89%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
There are no PNG files in this plugin