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 gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▲2.61ms] Passed 4 tests
This is a short check of server-side resources used by Multipage
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.77 ▼2.94 |
Dashboard /wp-admin | 3.37 ▲0.07 | 60.24 ▲7.71 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 50.02 ▲2.48 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 103.21 ▲8.99 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.43 ▲3.19 |
Multipage Advaced Settings /wp-admin/options-general.php?page=mpp-advanced-settings | 3.26 | 35.72 |
Multipage /wp-admin/options-general.php?page=mpp-settings | 3.26 | 43.99 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
_mpp-postmeta-built |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
_mpp_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Multipage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.24 ▼1.12 | 1.84 ▲0.36 | 42.28 ▼0.52 |
Dashboard /wp-admin | 2,215 ▲27 | 4.85 ▼0.02 | 111.79 ▲5.18 | 39.91 ▼6.10 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 2.06 ▲0.02 | 38.76 ▲1.19 | 34.53 ▼0.31 |
Add New Post /wp-admin/post-new.php | 6,188 ▲4,667 | 19.21 ▼4.03 | 971.33 ▲330.29 | 55.41 ▲2.66 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.34 ▲0.04 | 101.01 ▲2.32 | 43.85 ▲1.05 |
Multipage Advaced Settings /wp-admin/options-general.php?page=mpp-advanced-settings | 913 | 2.05 | 23.57 | 31.68 |
Multipage /wp-admin/options-general.php?page=mpp-settings | 1,027 | 2.07 | 22.40 | 30.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- theysaidso_admin_options
- _mpp_db_version
- widget_recent-posts
- _mpp-postmeta-built
- can_compress_scripts
- db_upgraded
- 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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sgr-nextpage-titles/sgr-nextpage-titles.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Requires php: Version not formatted correctly
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The settings page.), #2 (The block editor with a subpage block.), #3 (How the post will look like.)
sgr-nextpage-titles/sgr-nextpage-titles.php 92% from 13 tests
The entry point to "Multipage" version 1.5.12 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
Code Analysis Passed 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 detected1,461 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 487 | 1,384 | 1,282 |
CSS | 8 | 34 | 74 | 123 |
JavaScript | 3 | 9 | 7 | 56 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 23.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 14 | 33.33% |
▷ Public methods | 32 | 76.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 23.81% |
Functions | 78 | |
▷ Named functions | 78 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.77MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/tinymce/images/subpagebreak-2x.png | 2.10KB | 1.14KB | ▼ 45.89% |
inc/admin/tinymce/images/subpage.png | 1.04KB | 0.55KB | ▼ 47.03% |
screenshot-2.png | 123.96KB | 52.33KB | ▼ 57.78% |
screenshot-3.png | 565.06KB | 204.33KB | ▼ 63.84% |
inc/admin/tinymce/images/subpagebreak.png | 2.10KB | 1.14KB | ▼ 45.89% |