Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼5.34ms] Passed 4 tests
This is a short check of server-side resources used by NS Mistercorporate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 42.48 ▲4.93 |
Dashboard /wp-admin | 3.52 ▲0.22 | 51.20 ▼0.23 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 49.49 ▼4.11 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.21 | 88.82 ▼17.43 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 39.86 ▲0.43 |
/wp-admin/admin.php?page=plugineye219 | 3.41 | 31.21 |
Server storage [IO: ▲1.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_mistercorporate_contact_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for NS Mistercorporate
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.38 ▼0.31 | 1.93 ▼0.08 | 43.92 ▲1.51 |
Dashboard /wp-admin | 2,194 ▲14 | 5.58 ▼0.04 | 84.14 ▼3.47 | 42.80 ▼1.12 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.01 ▲0.01 | 36.32 ▼6.58 | 35.66 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 18.12 ▲0.57 | 628.76 ▼37.58 | 53.92 ▼1.12 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.27 ▲0.01 | 96.09 ▼19.02 | 43.13 ▼5.96 |
/wp-admin/admin.php?page=plugineye219 | 872 | 2.06 | 31.47 | 26.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- widget_mistercorporate_contact_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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
Even though everything seems fine, this is not 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-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ns-mistercorporate/template/ns-mistercorporate-template-home.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-mistercorporate/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Settings NS Mistercorporate.), #2 (View all new features.), #3 (Example Newsletter section), #4 (Example Price section), #5 (Example Map section)
ns-mistercorporate/ns-mistercorporate.php Passed 13 tests
The primary PHP file in "NS Mistercorporate" version 1.1.3 is used by WordPress to initiate all plugin functionality
57 characters long description:
This plugin add theme options to Mistercorporate template
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,980 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 236 | 223 | 1,797 |
CSS | 2 | 7 | 10 | 155 |
JavaScript | 1 | 4 | 0 | 28 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 39.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 60.87% |
Functions | 13 | |
▷ Named functions | 6 | 46.15% |
▷ Anonymous functions | 7 | 53.85% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 1.80MB with 1.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/map-marker.png | 1.42KB | 1.17KB | ▼ 17.42% |
screenshot-3.png | 384.58KB | 122.15KB | ▼ 68.24% |
screenshot-5.png | 329.65KB | 107.35KB | ▼ 67.44% |
screenshot-2.png | 784.19KB | 282.62KB | ▼ 63.96% |
screenshot-1.png | 181.35KB | 52.66KB | ▼ 70.96% |