67% speed-up-optimize-tool

Code Review | App Performance Tool

WordPress plugin App Performance Tool scored67%from 54 tests.

About plugin

  • Plugin page: speed-up-optimize...
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.3
  • WordPress version: 6.3.1
  • First release: Feb 4, 2017
  • Latest release: Jan 5, 2023
  • Number of updates: 8
  • Update frequency: every 270.0 days
  • Top authors: wpugphil (87.5%)carl-alberto (25%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,123 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.69MB] [CPU: ▼36.18ms] Passed 4 tests

A check of server-side resources used by App Performance Tool
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2140.82 ▼4.69
Dashboard /wp-admin3.26 ▼0.0823.06 ▼34.13
Posts /wp-admin/edit.php3.26 ▼0.0926.04 ▼23.61
Add New Post /wp-admin/post-new.php3.26 ▼2.6226.12 ▼76.76
Media Library /wp-admin/upload.php3.26 ▲0.0324.88 ▼10.22
Users /wp-admin/admin.php?page=users_check3.2623.95
Cron /wp-admin/admin.php?page=cron_check3.2627.40
Pantheon Check /wp-admin/admin.php?page=app-perf-check3.2623.68
Filesystem /wp-admin/admin.php?page=fs_check3.2623.79
Posts Table /wp-admin/admin.php?page=posts_check3.2620.41
Plugins /wp-admin/admin.php?page=plugin_check3.2625.57
Database /wp-admin/admin.php?page=db_check3.2623.00
WP Options Check /wp-admin/admin.php?page=autoload_check3.2624.09
Terms /wp-admin/admin.php?page=terms_check3.2624.96

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
speed_up_optimizeversion
can_compress_scripts
plg1_cb_reset

Browser metrics Passed 4 tests

An overview of browser requirements for App Performance Tool
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,873 ▲10214.80 ▲0.561.73 ▼0.1243.76 ▲3.43
Dashboard /wp-admin2,276 ▲995.69 ▲0.0396.51 ▲11.3638.41 ▼1.26
Posts /wp-admin/edit.php2,191 ▲912.07 ▲0.0441.74 ▲3.4135.98 ▲2.98
Add New Post /wp-admin/post-new.php1,569 ▲4323.47 ▲0.21666.80 ▼17.3061.00 ▲11.30
Media Library /wp-admin/upload.php1,484 ▲874.27 ▲0.0994.32 ▼6.7042.95 ▼0.48
Users /wp-admin/admin.php?page=users_check280.420.093.93
Cron /wp-admin/admin.php?page=cron_check280.420.063.74
Pantheon Check /wp-admin/admin.php?page=app-perf-check9571.7922.8525.70
Filesystem /wp-admin/admin.php?page=fs_check280.420.073.21
Posts Table /wp-admin/admin.php?page=posts_check280.420.073.28
Plugins /wp-admin/admin.php?page=plugin_check280.420.073.64
Database /wp-admin/admin.php?page=db_check280.420.114.12
WP Options Check /wp-admin/admin.php?page=autoload_check280.420.093.90
Terms /wp-admin/admin.php?page=terms_check280.420.063.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 8 options
    • plg1_cb_reset
    • speed_up_optimizeversion
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=terms_check
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=users_check
    • > Network (severe)
    wp-admin/admin.php?page=users_check - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=cron_check
    • > Network (severe)
    wp-admin/admin.php?page=cron_check - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=fs_check
    • > Network (severe)
    wp-admin/admin.php?page=fs_check - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=posts_check
    • > Network (severe)
    wp-admin/admin.php?page=posts_check - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=plugin_check
    • > Network (severe)
    wp-admin/admin.php?page=plugin_check - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=db_check
    • > Network (severe)
    wp-admin/admin.php?page=db_check - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=autoload_check
    • > Network (severe)
    wp-admin/admin.php?page=autoload_check - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=terms_check
    • > Network (severe)
    wp-admin/admin.php?page=terms_check - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: plugin, wordpress

speed-up-optimize-tool/speed-up-optimize.php 69% from 13 tests

The primary PHP file in "App Performance Tool" version 1.0.10 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.9" instead of "4.0")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("speed-up-optimize-tool.php" instead of "speed-up-optimize.php")
  • Description: Please use more than 10 characters for the plugin description (currently 0 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,158 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP83156731,104
JavaScript416654

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.28
Average class complexity21.60
▷ Minimum class complexity3.00
▷ Maximum class complexity60.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods69
▷ Static methods22.90%
▷ Public methods6797.10%
▷ Protected methods00.00%
▷ Private methods22.90%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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