90% wp-accelerate

Code Review | WordPress Accelerate

WordPress plugin WordPress Accelerate scored90%from 54 tests.

About plugin

  • Plugin page: wp-accelerate
  • Plugin version: 1.2.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.3
  • WordPress version: 6.3.1
  • First release: Feb 26, 2019
  • Latest release: Dec 30, 2019
  • Number of updates: 21
  • Update frequency: every 14.6 days
  • Top authors: mejta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /778 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.10ms] Passed 4 tests

Analyzing server-side resources used by WordPress Accelerate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.51 ▼12.96
Dashboard /wp-admin3.33 ▲0.0344.53 ▼5.48
Posts /wp-admin/edit.php3.38 ▲0.0247.28 ▼3.41
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.45 ▼2.54
Media Library /wp-admin/upload.php3.26 ▲0.0236.62 ▲1.97

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Accelerate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.66 ▼0.556.99 ▲5.1839.74 ▼1.49
Dashboard /wp-admin2,206 ▲155.83 ▲0.9298.72 ▼10.2341.51 ▼2.08
Posts /wp-admin/edit.php2,068 ▼242.02 ▼0.0038.52 ▼1.6938.58 ▲2.98
Add New Post /wp-admin/post-new.php1,542 ▲918.51 ▼4.73597.14 ▼79.0854.04 ▼3.74
Media Library /wp-admin/upload.php1,385 ▼04.21 ▼0.0597.75 ▼3.4544.63 ▲2.39

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
2 plugin tags: lazyloading, optimization

wp-accelerate/wp-accelerate.php Passed 13 tests

The principal PHP file in "WordPress Accelerate" v. 1.2.9 is loaded by WordPress automatically on each request
43 characters long description:
Speed Optimizations for WordPress websites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin71 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP114770
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.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
PNG images were not found in this plugin