10% speedly

Code Review | Speedly

WordPress plugin Speedly scored10%from 54 tests.

About plugin

  • Plugin page: speedly
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2015
  • Latest release: Mar 31, 2015
  • Number of updates: 2
  • Update frequency: every 9.0 days
  • Top authors: egyptik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /887 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/speedly/speedly-plugin.php+41
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.20ms] Passed 4 tests

A check of server-side resources used by Speedly
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.405.34 ▼31.58
Dashboard /wp-admin2.09 ▼1.226.41 ▼42.79
Posts /wp-admin/edit.php2.09 ▼1.276.68 ▼41.81
Add New Post /wp-admin/post-new.php2.09 ▼3.805.97 ▼96.61
Media Library /wp-admin/upload.php2.09 ▼1.145.90 ▼26.79
Speedly /wp-admin/options-general.php?page=speedly2.096.49

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Speedly: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.35 ▲0.071.64 ▲0.0141.11 ▲0.88
Dashboard /wp-admin2,212 ▲375.51 ▼0.2583.02 ▼15.9137.66 ▼6.37
Posts /wp-admin/edit.php2,117 ▲172.00 ▼0.0335.66 ▼2.0331.72 ▼1.27
Add New Post /wp-admin/post-new.php1,536 ▲823.20 ▲0.18670.25 ▲2.8949.57 ▼4.53
Media Library /wp-admin/upload.php1,417 ▲264.16 ▼0.05113.61 ▲12.9247.56 ▲3.12
Speedly /wp-admin/options-general.php?page=speedly8392.0527.7727.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/speedly/speedly-plugin.php+41
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=speedly
    • > Notice in wp-content/plugins/speedly/speedly-settings.php+59
    Trying to access array offset on value of type bool

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/speedly/speedly-settings.php:2

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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 to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === speedly === )
The official readme.txt might help

speedly/speedly-plugin.php 92% from 13 tests

The main PHP script in "Speedly" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("speedly.php" instead of "speedly-plugin.php")

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
Good job! No executable or dangerous file extensions detected190 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP36941140
JavaScript217142
CSS1108

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon.png3.19KB0.74KB▼ 76.68%
icon-hover.png3.17KB0.74KB▼ 76.58%