90% acelerator

Code Review | Acelerator

WordPress plugin Acelerator scored90%from 54 tests.

About plugin

  • Plugin page: acelerator
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.6
  • WordPress version: 6.3.1
  • First release: May 17, 2018
  • Latest release: May 18, 2018
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: alecksmart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /905 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.50ms] Passed 4 tests

Analyzing server-side resources used by Acelerator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.22 ▲2.44
Dashboard /wp-admin3.33 ▼0.0243.94 ▼20.99
Posts /wp-admin/edit.php3.38 ▲0.0249.25 ▲4.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.88 ▼3.73
Media Library /wp-admin/upload.php3.25 ▲0.0237.82 ▲5.45
Acelerator /wp-admin/options-general.php?page=acelerator-setting-admin3.2232.49

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 376 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
acelerator_options

Browser metrics Passed 4 tests

Checking browser requirements for Acelerator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.27 ▼0.301.89 ▲0.0140.27 ▼1.40
Dashboard /wp-admin2,202 ▲285.55 ▲0.0192.44 ▲1.9950.37 ▲9.59
Posts /wp-admin/edit.php2,107 ▲72.00 ▼0.0040.55 ▲2.3235.12 ▼1.91
Add New Post /wp-admin/post-new.php1,532 ▲423.78 ▲0.60639.90 ▲20.5550.19 ▼5.59
Media Library /wp-admin/upload.php1,407 ▲44.28 ▲0.0499.90 ▼2.4744.66 ▼1.47
Acelerator /wp-admin/options-general.php?page=acelerator-setting-admin8452.0122.4942.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • acelerator_options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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 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 on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: A description for screenshot #1 is required in acelerator/assets to your readme.txt
You can take inspiration from this readme.txt

acelerator/acelerator.php Passed 13 tests

The primary PHP file in "Acelerator" version 0.1 is used by WordPress to initiate all plugin functionality
36 characters long description:
Enhance any textarea with ace editor

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
Success! There were no dangerous files found in this plugin3,169 lines of code in 372 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36936012,897
PHP22613257
Markdown18015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.67
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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 files were detected