Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/devnia-pm-based-on-cartpauj-pm/pm-class.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; cartpaujPM has a deprecated constructor
Server metrics [RAM: ▼1.55MB] [CPU: ▼60.12ms] Passed 4 tests
Server-side resources used by Bootstrap Devnia PM based on Cartpauj-PM wordpress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.45 ▼1.01 | 6.09 ▼40.98 |
Dashboard /wp-admin | 2.47 ▼0.88 | 8.01 ▼57.24 |
Posts /wp-admin/edit.php | 2.47 ▼0.89 | 6.98 ▼44.46 |
Add New Post /wp-admin/post-new.php | 2.47 ▼3.42 | 7.21 ▼97.81 |
Media Library /wp-admin/upload.php | 2.47 ▼0.76 | 7.29 ▼35.64 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/devnia-pm-based-on-cartpauj-pm/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 91 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_cartpauj_pm_messages |
wp_cartpauj_pm_attachments |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
cartpaujPM_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bootstrap Devnia PM based on Cartpauj-PM wordpress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 13.24 ▼1.31 | 2.08 ▲0.32 | 40.68 ▼4.26 |
Dashboard /wp-admin | 2,219 ▲16 | 5.76 ▲0.74 | 100.15 ▼2.75 | 42.98 ▲2.22 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.03 | 34.50 ▼3.66 | 33.40 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,547 ▼133 | 21.92 ▼0.58 | 693.86 ▼6.39 | 52.42 ▼0.80 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▲0.05 | 130.77 ▲11.06 | 55.03 ▲5.24 |
Cartpauj PM /wp-admin/pm-class.php | 26 | 0.44 | 0.09 | 14.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/devnia-pm-based-on-cartpauj-pm/pm-class.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; cartpaujPM has a deprecated constructor
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_cartpauj_pm_attachments
- wp_cartpauj_pm_messages
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- cartpaujPM_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/devnia-pm-based-on-cartpauj-pm/download.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/devnia-pm-based-on-cartpauj-pm/js/search.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/devnia-pm-based-on-cartpauj-pm/js/search.php:6
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/devnia-pm-based-on-cartpauj-pm/js/search.php on line 6
- > PHP Notice
Undefined index: q in wp-content/plugins/devnia-pm-based-on-cartpauj-pm/js/search.php on line 4
- > PHP Warning
Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/devnia-pm-based-on-cartpauj-pm/pm-class.php on line 122
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/devnia-pm-based-on-cartpauj-pm/pm-class.php:234
- > PHP Notice
Trying to get property 'users' of non-object in wp-content/plugins/devnia-pm-based-on-cartpauj-pm/js/search.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/devnia-pm-based-on-cartpauj-pm/pm-class.php on line 121
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/pm-class.php
- > Network (severe)
wp-admin/pm-class.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
devnia-pm-based-on-cartpauj-pm/pm-main.php 77% from 13 tests
The principal PHP file in "Bootstrap Devnia PM based on Cartpauj-PM wordpress" v. 1.0.12 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 269 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("devnia-pm-based-on-cartpauj-pm.php" instead of "pm-main.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin10,700 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 4 | 10 | 6,083 |
PO File | 17 | 1,625 | 1,892 | 3,519 |
PHP | 5 | 148 | 125 | 1,021 |
JavaScript | 1 | 9 | 6 | 74 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
13 PNG files occupy 0.17MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bbc/color.png | 47.30KB | 0.18KB | ▼ 99.63% |
images/bbc/email.png | 3.32KB | 0.62KB | ▼ 81.22% |
images/bbc/url.png | 3.25KB | 0.52KB | ▼ 84.08% |
images/bbc/u.png | 2.97KB | 0.34KB | ▼ 88.55% |
images/bbc/b.png | 3.02KB | 0.42KB | ▼ 86.21% |