83% x3m-site-wide-ninjatweaks

Code Review | X3M Site-Wide Ninja Tweaks

WordPress plugin X3M Site-Wide Ninja Tweaks scored83%from 54 tests.

About plugin

  • Plugin page: x3m-site-wide-nin...
  • Plugin version: 1.0 bld.20130509a...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: May 16, 2013
  • Latest release: May 17, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: x3mgroup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /653 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by X3M Site-Wide Ninja Tweaks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.95 ▼8.06
Dashboard /wp-admin3.31 ▼0.0445.44 ▼19.45
Posts /wp-admin/edit.php3.36 ▲0.0045.50 ▼2.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.08 ▼17.52
Media Library /wp-admin/upload.php3.23 ▲0.0035.83 ▲0.96

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for X3M Site-Wide Ninja Tweaks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,779 ▼713.96 ▼0.591.68 ▼0.3439.00 ▼3.87
Dashboard /wp-admin2,187 ▲75.47 ▼0.1679.67 ▼15.8039.31 ▼7.46
Posts /wp-admin/edit.php2,092 ▼51.95 ▼0.0132.29 ▼2.3534.12 ▼11.24
Add New Post /wp-admin/post-new.php1,520 ▼823.75 ▲0.35670.05 ▼12.5958.74 ▼7.61
Media Library /wp-admin/upload.php1,392 ▼84.17 ▲0.0395.06 ▼3.2343.22 ▼3.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/x3m-site-wide-ninjatweaks/X3m-SiteWide-NinjaTweaks.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

x3m-site-wide-ninjatweaks/X3m-SiteWide-NinjaTweaks.php 77% from 13 tests

Analyzing the main PHP file in "X3M Site-Wide Ninja Tweaks" version 1.0 bld.20130509a...
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 194 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("x3m-site-wide-ninjatweaks.php" instead of "X3m-SiteWide-NinjaTweaks.php")
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1.0 bld.20130509a...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP193411

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin