84% performance-tester

Code Review | Performance Tester

WordPress plugin Performance Tester scored84%from 54 tests.

About plugin

  • Plugin page: performance-tester
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2014
  • Latest release: Jan 12, 2015
  • Number of updates: 5
  • Update frequency: every 6.0 days
  • Top authors: DareBoost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,845 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼9.30ms] Passed 4 tests

This is a short check of server-side resources used by Performance Tester
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0858.72 ▲15.76
Dashboard /wp-admin3.43 ▲0.0848.42 ▼0.75
Posts /wp-admin/edit.php3.54 ▲0.1447.80 ▼6.26
Add New Post /wp-admin/post-new.php6.01 ▲0.0890.23 ▼25.83
Media Library /wp-admin/upload.php3.35 ▲0.0833.49 ▼4.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Performance Tester
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8714.25 ▼0.142.39 ▲0.6959.03 ▲16.53
Dashboard /wp-admin2,220 ▲405.49 ▼0.1883.54 ▼6.1341.38 ▼0.98
Posts /wp-admin/edit.php2,125 ▲221.98 ▼0.0235.79 ▼4.8035.10 ▼3.21
Add New Post /wp-admin/post-new.php1,542 ▲1623.09 ▼0.71656.30 ▼41.0154.93 ▲1.78
Media Library /wp-admin/upload.php1,419 ▲224.15 ▼0.10100.01 ▼22.7644.83 ▼2.85

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
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/performance-tester/performance-tester.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

performance-tester/performance-tester.php Passed 13 tests

This is the main PHP file of "Performance Tester" version 0.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
Analyze your web page and get a quality and performance report.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin624 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP170171320
PO File13742139
CSS12724116
JavaScript181249

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods945.00%
▷ Protected methods00.00%
▷ Private methods1155.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/stair_drawer.png0.11KB0.12KB0.00%
image/logo.png1.80KB1.87KB0.00%