90% perform

Code Review | Perform

WordPress plugin Perform scored 90% from 54 tests.

About plugin

  • Plugin page: perform
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.6
  • WordPress version: 5.8.1
  • First release: Mar 26, 2019
  • Latest release: Dec 22, 2020
  • Number of updates: 51
  • Update frequency: every 17.8 days
  • Top authors: mehul0810 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,276 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼152.44ms] Passed 4 tests

Analyzing server-side resources used by Perform
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1842.68 ▲20.58
Dashboard /wp-admin3.20 ▲0.1554.86 ▼12.91
Posts /wp-admin/edit.php3.29 ▲0.1853.54 ▼15.22
Add New Post /wp-admin/post-new.php5.56 ▲0.13101.72 ▼579.27
Media Library /wp-admin/upload.php3.15 ▲0.1436.75 ▼2.37
Perform /wp-admin/options-general.php?page=perform3.1133.90

Server storage [IO: ▲0.31MB] [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: 46 new files
Database: no new tables, 4 new options
New WordPress options
perform_common
perform_cdn
perform_advanced
perform_ssl

Browser metrics Passed 4 tests

An overview of browser requirements for Perform
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.30 ▲0.739.74 ▼1.2753.86 ▼0.85
Dashboard /wp-admin2,977 ▲435.90 ▼0.08150.28 ▼60.75120.98 ▼61.36
Posts /wp-admin/edit.php2,752 ▲132.71 ▲0.0079.90 ▼8.0491.05 ▼23.85
Add New Post /wp-admin/post-new.php1,688 ▲10717.96 ▼0.61426.75 ▲10.41118.55 ▼2.46
Media Library /wp-admin/upload.php1,814 ▲75.03 ▼0.03182.58 ▲15.33126.17 ▼2.31
Perform /wp-admin/options-general.php?page=perform1,4952.0967.0485.93

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
These items require your attention
  • This plugin does not fully uninstall, leaving 4 options in the database
    • perform_ssl
    • perform_cdn
    • perform_common
    • perform_advanced

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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: assets manager, disable embeds, performance, disable emoji, scripts manager...

perform/perform.php Passed 13 tests

"Perform" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
This plugin adds toolset for performance and speed improvements to your WordPress sites.

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
No dangerous file extensions were detected4,628 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP311,0752,1664,421
JSON100199
CSS4004
SVG3003
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity25.09
▷ Minimum class complexity1.00
▷ Maximum class complexity124.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes14.55%
Methods228
▷ Static methods229.65%
▷ Public methods19384.65%
▷ Protected methods62.63%
▷ Private methods2912.72%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/dist/images/perform-retina-logo.png2.02KB2.02KB0.00%