78% speed-checker

Code Review | Speed-Checker

WordPress plugin Speed-Checker scored78%from 54 tests.

About plugin

  • Plugin page: speed-checker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 12, 2023
  • Latest release: Apr 24, 2023
  • Number of updates: 8
  • Update frequency: every 1.5 days
  • Top authors: aanandchamp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /123 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.03MB] [CPU: ▼5.17ms] Passed 4 tests

This is a short check of server-side resources used by Speed-Checker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.82 ▲0.30
Dashboard /wp-admin3.35 ▲0.0052.67 ▼14.85
Posts /wp-admin/edit.php3.40 ▲0.0446.99 ▲0.61
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.84 ▼6.73
Media Library /wp-admin/upload.php3.27 ▲0.0441.81 ▲6.04
Speed Checker /wp-admin/tools.php?page=scfw3.2635.36

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
scfw_speed_test_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Speed-Checker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.19 ▼0.532.00 ▲0.2643.60 ▼3.73
Dashboard /wp-admin2,206 ▲265.61 ▼0.0595.53 ▲3.1042.88 ▲0.18
Posts /wp-admin/edit.php2,108 ▲82.05 ▲0.0836.41 ▼1.1636.48 ▼1.70
Add New Post /wp-admin/post-new.php1,540 ▲1423.03 ▼0.57679.07 ▲30.3349.95 ▼2.27
Media Library /wp-admin/upload.php1,408 ▲54.15 ▼0.13110.06 ▲11.0246.89 ▼0.42
Speed Checker /wp-admin/tools.php?page=scfw8852.1327.1033.38

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | 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 fix the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/speed-checker/admin/scfw_admin.php
    • > /wp-content/plugins/speed-checker/html/contact.php
    • > /wp-content/plugins/speed-checker/speed-checker.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function scfw_get_option() in wp-content/plugins/speed-checker/includes/scfw_options.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/speed-checker/includes/scfw_core.php:9
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/speed-checker/includes/scfw_list_table.php on line 11
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/speed-checker/includes/scfw_list_table.php on line 11
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/speed-checker/includes/scfw_list_table.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: seo, pagespeed, speed, report, perfomance

speed-checker/speed-checker.php 92% from 13 tests

The main file in "Speed-Checker" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected433 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP82955346
CSS18156
JavaScript13031

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.35
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin