68% supersonic

Code Review | Wordpress SuperSonic with CloudFlare

WordPress plugin Wordpress SuperSonic with CloudFlare scored68%from 54 tests.

About plugin

  • Plugin page: supersonic
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7
  • WordPress version: 6.3.1
  • First release: Apr 10, 2015
  • Latest release: Jan 14, 2017
  • Number of updates: 63
  • Update frequency: every 14.9 days
  • Top authors: kursorA (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

40+ active /8,968 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.50MB] [CPU: ▼0.44ms] Passed 4 tests

Analyzing server-side resources used by Wordpress SuperSonic with CloudFlare
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.4742.57 ▼4.21
Dashboard /wp-admin4.13 ▲0.5753.71 ▼0.18
Posts /wp-admin/edit.php4.18 ▲0.5057.49 ▲4.72
Add New Post /wp-admin/post-new.php6.66 ▲0.51103.25 ▼2.07
Media Library /wp-admin/upload.php3.99 ▲0.5045.94 ▲6.26

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 236 new files
Database: 3 new tables, 8 new options
New tables
wp_wpss_log
wp_wpss_clear
wp_wpss_links
New WordPress options
wpss_db_version
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
wpss_v4
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress SuperSonic with CloudFlare
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,647 ▼13914.30 ▼0.511.31 ▼1.1043.04 ▼0.93
Dashboard /wp-admin2,236 ▲595.62 ▼0.0790.59 ▼8.3242.50 ▼3.20
Posts /wp-admin/edit.php2,141 ▲412.03 ▼0.0340.12 ▲2.5936.53 ▲0.80
Add New Post /wp-admin/post-new.php1,574 ▲2621.90 ▼1.42616.48 ▼36.1555.58 ▲7.44
Media Library /wp-admin/upload.php1,438 ▲354.18 ▼0.0598.45 ▼12.3942.89 ▼2.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables detected upon uninstall: 3 tables
    • wp_wpss_links
    • wp_wpss_log
    • wp_wpss_clear
  • Zombie WordPress options were found after uninstall: 8 options
    • wpss_v4
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • wpss_db_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/supersonic/inc/views/statistics.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: nonce in wp-content/plugins/supersonic/inc/views/statistics.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/supersonic/inc/views/statistics.php:131
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/supersonic/inc/statistics.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === supersonic === )
You can take inspiration from this readme.txt

supersonic/supersonic.php 92% from 13 tests

The primary PHP file in "Wordpress SuperSonic with CloudFlare" version 1.9 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,607 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP111607903,607

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity21.00
▷ Minimum class complexity13.00
▷ Maximum class complexity29.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2787.10%
▷ Protected methods00.00%
▷ Private methods412.90%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
224 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
flags/mn.png0.65KB0.71KB0.00%
flags/pf.png0.60KB0.58KB▼ 3.41%
flags/lv.png0.43KB0.43KB0.00%
flags/ki.png1.17KB1.18KB0.00%
flags/dm.png0.91KB0.89KB▼ 2.03%