84% simply-static-callback

Code Review | Simply Static Callback

WordPress plugin Simply Static Callback scored84%from 54 tests.

About plugin

  • Plugin page: simply-static-cal...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.9
  • WordPress version: 6.3.1
  • First release: Feb 18, 2022
  • Latest release: Feb 23, 2022
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: zearg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,694 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.65ms] Passed 4 tests

A check of server-side resources used by Simply Static Callback
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.26 ▼0.79
Dashboard /wp-admin3.31 ▲0.0044.86 ▼5.72
Posts /wp-admin/edit.php3.36 ▲0.0048.61 ▲1.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.50 ▼17.56
Media Library /wp-admin/upload.php3.23 ▲0.0035.66 ▲1.48

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Simply Static Callback
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.34 ▼0.931.60 ▼0.2540.25 ▼1.12
Dashboard /wp-admin2,203 ▲185.79 ▼0.23101.56 ▼0.3941.19 ▲1.23
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0541.58 ▲1.4834.85 ▼3.98
Add New Post /wp-admin/post-new.php1,514 ▼1417.44 ▼1.06691.12 ▲88.1956.83 ▼6.68
Media Library /wp-admin/upload.php1,385 ▲34.19 ▼0.05106.76 ▲6.8849.13 ▲4.70

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Simply_Static\\Task' not found in wp-content/plugins/simply-static-callback/admin/tasks/class-ss-callback-task.php:7

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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: simply static, callback

simply-static-callback/simply-static-callback.php Passed 13 tests

The main PHP script in "Simply Static Callback" version 1.0.0 is automatically included on every request by WordPress
67 characters long description:
Send a callback to URI when Simply Static plugin generation is over

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin425 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10138458393
JavaScript14026
CSS1246

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.71
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods516.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin