78% themes-speed-test

Code Review | Themes Speed Test

WordPress plugin Themes Speed Test scored78%from 54 tests.

About plugin

  • Plugin page: themes-speed-test
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2015
  • Latest release: Mar 13, 2015
  • Number of updates: 3
  • Update frequency: every 3.7 days
  • Top authors: d3wp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /4,666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Themes Speed Test
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.42 ▼6.88
Dashboard /wp-admin3.32 ▲0.0247.53 ▼1.31
Posts /wp-admin/edit.php3.37 ▲0.0245.38 ▼6.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0295.57 ▼7.60
Media Library /wp-admin/upload.php3.25 ▲0.0234.92 ▼0.91
Themes Speed Test /wp-admin/themes.php?page=themes_speed_test3.2333.74

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Themes Speed Test: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.45 ▲0.261.79 ▼0.4844.08 ▲1.78
Dashboard /wp-admin2,204 ▲135.84 ▼0.0999.72 ▼13.8339.81 ▼6.77
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0135.40 ▲0.4133.39 ▼3.40
Add New Post /wp-admin/post-new.php1,545 ▲3118.41 ▲0.57633.29 ▼48.8064.51 ▲12.63
Media Library /wp-admin/upload.php1,386 ▲14.19 ▼0.0496.51 ▼6.8142.35 ▼0.97
Themes Speed Test /wp-admin/themes.php?page=themes_speed_test1,0172.1131.8950.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/themes-speed-test/themes-speed-test.php:21

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/themes.php?page=themes_speed_test
    • > Javascript (severe) in unknown
    /wp-admin/themes.php?page=themes_speed_test - Access to XMLHttpRequest at 'http://api.wpspeedster.com/v1/themes/info' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/themes.php?page=themes_speed_test
    • > Network (severe)
    http://api.wpspeedster.com/v1/themes/info - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: theme, themes, speed test

themes-speed-test/themes-speed-test.php 92% from 13 tests

The main PHP file in "Themes Speed Test" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Everything looks great! No dangerous files found in this plugin128 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11918128

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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