Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.29MB] [CPU: ▼3.56ms] Passed 4 tests
Analyzing server-side resources used by Insert Pages
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 37.48 ▼7.99 |
Dashboard /wp-admin | 3.63 ▲0.28 | 54.13 ▼10.42 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 51.47 ▲1.15 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 105.80 ▲3.03 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 40.36 ▲5.29 |
Insert Pages /wp-admin/options-general.php?page=insert_pages | 3.48 | 31.90 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wpip_settings |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_ipw |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Insert Pages
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,101 ▲340 | 13.29 ▼1.06 | 1.80 ▲0.22 | 43.58 ▲6.75 |
Dashboard /wp-admin | 2,479 ▲299 | 4.95 ▼0.92 | 100.68 ▲6.79 | 39.51 ▼0.02 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.39 ▲0.41 | 41.70 ▲8.40 | 34.59 ▼1.94 |
Add New Post /wp-admin/post-new.php | 6,225 ▲4,699 | 19.25 ▼4.21 | 882.28 ▲190.71 | 37.85 ▼24.17 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.55 ▲0.37 | 110.44 ▲1.13 | 46.19 ▲1.09 |
Insert Pages /wp-admin/options-general.php?page=insert_pages | 967 | 2.12 | 28.87 | 45.40 |
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
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_ipw
- wpip_settings
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/insert-pages/options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/insert-pages/options.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/insert-pages/widget.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Insert Pages toolbar button.), #2 (Insert Pages browser.), #3 (Insert Pages shortcode example.)
insert-pages/insert-pages.php 92% from 13 tests
"Insert Pages" version 3.7.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected22,614 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 19,421 |
PHP | 5 | 205 | 629 | 1,398 |
JavaScript | 9 | 321 | 229 | 1,376 |
CSS | 3 | 68 | 4 | 380 |
XML | 1 | 7 | 7 | 20 |
Sass | 1 | 1 | 4 | 19 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 152)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 139.50 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 253.00 |
Average method complexity | 12.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 152.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 | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 1 | 4.00% |
▷ Private methods | 3 | 12.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 80.53KB | 32.53KB | ▼ 59.60% |
screenshot-1.png | 49.60KB | 20.63KB | ▼ 58.42% |
img/insertpages_toolbar_icon.png | 1.29KB | 0.50KB | ▼ 61.03% |
screenshot-3.png | 51.93KB | 19.98KB | ▼ 61.53% |
img/toggle-arrow.png | 3.15KB | 0.29KB | ▼ 90.73% |