Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲2.60MB] [CPU: ▼1.97ms] Passed 4 tests
An overview of server-side resources used by PCMegaworks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.76 ▲3.30 | 68.65 ▲26.36 |
Dashboard /wp-admin | 6.60 ▲3.25 | 64.33 ▼5.51 |
Posts /wp-admin/edit.php | 6.71 ▲3.36 | 65.81 ▲13.74 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.56 | 60.42 ▼42.45 |
Media Library /wp-admin/upload.php | 6.52 ▲3.29 | 194.37 ▲156.30 |
Server storage [IO: ▲3.22MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/pcmegaworks/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 119 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
PCPlugin_Activation |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
PCPlugin |
db_upgraded |
Browser metrics Passed 4 tests
PCMegaworks: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,127 ▲366 | 16.20 ▲1.82 | 14.93 ▲13.06 | 55.28 ▲10.80 |
Dashboard /wp-admin | 2,370 ▲167 | 6.84 ▲0.99 | 108.55 ▼0.81 | 80.75 ▲35.53 |
Posts /wp-admin/edit.php | 2,206 ▲109 | 3.49 ▲1.44 | 41.49 ▲4.28 | 54.35 ▲15.81 |
Add New Post /wp-admin/post-new.php | 1,431 ▼114 | 21.44 ▼1.70 | 582.76 ▼75.48 | 66.37 ▲17.59 |
Media Library /wp-admin/upload.php | 1,541 ▲144 | 5.99 ▲1.78 | 112.49 ▲16.49 | 55.62 ▲10.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/pcmegaworks/includes/PCMW_Config.php+659
Undefined index: PCPLUGINACTIVE
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- PCPlugin
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- PCPlugin_Deactivation
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
The following issues need your attention
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PCMW_BaseClass' not found in wp-content/plugins/pcmegaworks/includes/PCMW_BootQueryUpdater.php:9
- > PHP Fatal error
Uncaught Error: Class 'PCMW_BaseClass' not found in wp-content/plugins/pcmegaworks/includes/PCMW_ChatMessage.php:10
- > PHP Fatal error
Uncaught Error: Class 'PCMW_BaseClass' not found in wp-content/plugins/pcmegaworks/includes/PCMW_CSSInterface.php:9
- > PHP Fatal error
Uncaught Error: Class 'PCMW_BaseClass' not found in wp-content/plugins/pcmegaworks/includes/PCMW_MailBlast.php:9
- > PHP Fatal error
Uncaught Error: Class 'PCMW_BaseClass' not found in wp-content/plugins/pcmegaworks/includes/PCMW_CustomMenu.php:13
- > PHP Fatal error
Uncaught Error: Class 'PCMW_BaseClass' not found in wp-content/plugins/pcmegaworks/includes/PCMW_WatermarkCore.php:9
- > PHP Fatal error
Uncaught Error: Class 'PCMW_BaseClass' not found in wp-content/plugins/pcmegaworks/includes/PCMW_404Redirect.php:11
- > PHP Fatal error
Uncaught Error: Class 'PCMW_BaseClass' not found in wp-content/plugins/pcmegaworks/includes/PCMW_Login.php:10
- > AH02429
Response header name 'Location ' contains invalid characters, aborting request
- > PHP Fatal error
Uncaught Error: Class 'PCMW_BaseClass' not found in wp-content/plugins/pcmegaworks/includes/PCMW_PluginCoreHelper.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: broken images, mail blast, 404 redirects, custom forms, basic chat...
pcmegaworks/PCMegaworks.php 77% from 13 tests
The primary PHP file in "PCMegaworks" version 001.040.010 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pcmegaworks.php" instead of "PCMegaworks.php")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/PCMegaworks")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected26,496 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 1,518 | 6,335 | 15,652 |
CSS | 8 | 81 | 68 | 7,738 |
JavaScript | 9 | 718 | 567 | 2,809 |
SVG | 1 | 0 | 0 | 288 |
HTML | 1 | 5 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 53.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 253.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 56 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 916 | |
▷ Static methods | 89 | 9.72% |
▷ Public methods | 904 | 98.69% |
▷ Protected methods | 8 | 0.87% |
▷ Private methods | 4 | 0.44% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 31 | |
▷ Global constants | 26 | 83.87% |
▷ Class constants | 5 | 16.13% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 PNG files occupy 0.56MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/46.png | 9.11KB | 4.31KB | ▼ 52.72% |
assets/images/m4.png | 5.57KB | 4.23KB | ▼ 24.08% |
assets/images/people35.png | 1.36KB | 1.43KB | 0.00% |
assets/screenshot-3.png | 26.97KB | 12.88KB | ▼ 52.24% |
assets/images/20.png | 9.01KB | 3.52KB | ▼ 60.90% |