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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.79ms] Passed 4 tests
This is a short check of server-side resources used by 4partners
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.75 ▼4.73 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.83 ▼2.31 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.73 ▼2.22 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.20 ▼13.88 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.80 ▲1.81 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_4partners_synchronization_version |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Activated_Plugin |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 4partners
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.16 ▼1.14 | 1.70 ▼0.13 | 42.64 ▼2.80 |
Dashboard /wp-admin | 2,209 ▲18 | 4.85 ▼0.05 | 105.82 ▲3.86 | 40.17 ▼3.17 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▲0.01 | 36.96 ▼7.38 | 35.22 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,539 ▲1 | 23.34 ▲0.17 | 642.18 ▲35.66 | 48.24 ▼8.61 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.02 | 94.44 ▼1.93 | 41.54 ▼0.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- Activated_Plugin
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function PHPSTORM_META\\override() in wp-content/plugins/4partners/.phpstorm.meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/4partners/4partners.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
No tags were detected
4partners/4partners.php 92% from 13 tests
"4partners" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Make the plugin description longer than 10 characters (currently 1 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,075 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 679 | 540 | 2,691 |
CSS | 1 | 13 | 0 | 129 |
PO File | 1 | 31 | 39 | 86 |
JavaScript | 1 | 19 | 5 | 53 |
Markdown | 1 | 22 | 0 | 41 |
XML | 1 | 17 | 43 | 34 |
JSON | 2 | 0 | 0 | 32 |
SVG | 1 | 0 | 0 | 9 |
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 code | 0.35 |
Average class complexity | 18.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 162 | |
▷ Static methods | 20 | 12.35% |
▷ Public methods | 148 | 91.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 8.64% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 26 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 26 | 100.00% |
▷ Public constants | 26 | 100.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
PNG images were not found in this plugin