83% responsive-customizer

Code Review | Responsive Customizer

WordPress plugin Responsive Customizer scored83%from 54 tests.

About plugin

  • Plugin page: responsive-custom...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.1
  • WordPress version: 6.3.1
  • First release: Nov 1, 2013
  • Latest release: Jun 4, 2014
  • Number of updates: 9
  • Update frequency: every 23.9 days
  • Top authors: madpixels (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,082 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Responsive Customizer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.36 ▼4.10
Dashboard /wp-admin3.33 ▲0.0352.11 ▲2.31
Posts /wp-admin/edit.php3.39 ▲0.0349.51 ▼0.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.45 ▼15.49
Media Library /wp-admin/upload.php3.26 ▲0.0232.96 ▼3.33

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Customizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼0.255.48 ▲3.9140.10 ▼0.24
Dashboard /wp-admin2,206 ▲185.83 ▼0.03130.72 ▲21.1343.97 ▼1.49
Posts /wp-admin/edit.php2,089 ▼32.05 ▼0.0140.74 ▼2.4735.08 ▲0.18
Add New Post /wp-admin/post-new.php1,535 ▼723.03 ▲4.94604.81 ▼32.0551.82 ▼15.91
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0398.95 ▼2.9842.50 ▼0.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-customizer/index.php:86

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 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

responsive-customizer/index.php 85% from 13 tests

This is the main PHP file of "Responsive Customizer" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("responsive-customizer.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 236 characters long)

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
There were no executable files found in this plugin205 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1290101
PHP1112953
PO File18732
CSS14019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
No PNG images were found in this plugin