90% autoload-checker

Code Review | Autoload Checker

WordPress plugin Autoload Checker scored90%from 54 tests.

About plugin

  • Plugin page: autoload-checker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2023
  • Latest release: Sep 22, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: sixaxis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /211 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Autoload Checker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.36 ▲1.68
Dashboard /wp-admin3.32 ▲0.0252.39 ▲2.48
Posts /wp-admin/edit.php3.37 ▲0.0249.83 ▼2.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.95 ▼13.76
Media Library /wp-admin/upload.php3.24 ▲0.0235.70 ▲0.05
Autoload Checker /wp-admin/tools.php?page=autoload-checker3.2232.02

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Autoload Checker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.20 ▼0.401.85 ▼0.1044.54 ▲2.04
Dashboard /wp-admin2,196 ▲195.65 ▼0.0499.61 ▲9.2241.71 ▼0.80
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0236.43 ▼6.2834.87 ▲0.66
Add New Post /wp-admin/post-new.php1,548 ▲823.28 ▲0.28672.37 ▼19.8568.49 ▲15.20
Media Library /wp-admin/upload.php1,398 ▼24.20 ▼0.0197.80 ▼8.6547.55 ▲1.17
Autoload Checker /wp-admin/tools.php?page=autoload-checker1,0472.0123.0832.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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
6 plugin tags: autoloads, optimize database, autoloaded data, clean database, check database status...

autoload-checker/autoload-checker.php Passed 13 tests

The main file in "Autoload Checker" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
89 characters long description:
Checks the autoloaded data size and lists the top autoloaded data entries sorted by size.

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
Success! There were no dangerous files found in this plugin72 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1182272

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin