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
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.84ms] Passed 4 tests
This is a short check of server-side resources used by iPROS24 Notices
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 44.58 ▲6.07 |
Dashboard /wp-admin | 3.37 ▲0.03 | 55.29 ▼12.28 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.21 ▼1.22 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 91.04 ▼11.70 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.16 ▲5.84 |
Add New /wp-admin/post-new.php?post_type=ipros24-notice | 3.41 | 57.43 |
Notices /wp-admin/options-general.php?page=ipros24-notices-options-page | 3.27 | 35.30 |
All Notices /wp-admin/edit.php?post_type=ipros24-notice | 3.34 | 39.19 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
ipros24-notices-options |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for iPROS24 Notices
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲234 | 13.94 ▼0.40 | 13.25 ▲11.52 | 31.49 ▼11.95 |
Dashboard /wp-admin | 2,228 ▲51 | 5.58 ▼0.15 | 94.54 ▼9.24 | 45.14 ▲2.74 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.03 ▲0.04 | 35.73 ▼1.74 | 39.97 ▲3.56 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.30 ▲0.14 | 683.93 ▼32.84 | 53.11 ▼2.62 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.22 ▲0.04 | 109.09 ▲4.55 | 50.81 ▲1.63 |
Add New /wp-admin/post-new.php?post_type=ipros24-notice | 2,340 | 7.52 | 183.67 | 81.15 |
Notices /wp-admin/options-general.php?page=ipros24-notices-options-page | 928 | 2.08 | 38.59 | 34.52 |
All Notices /wp-admin/edit.php?post_type=ipros24-notice | 1,097 | 1.97 | 31.80 | 31.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- ipros24-notices-options
- widget_theysaidso_widget
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_is_mobile() in wp-content/plugins/ipros24-notices/assets/php/utils.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Sample notice.), #2 (Password protected and personalised notices.), #3 (Plugin settings.), #4 (Editing a notice.)
ipros24-notices/ipros24-notices.php Passed 13 tests
The principal PHP file in "iPROS24 Notices" v. 1.7.2 is loaded by WordPress automatically on each request
39 characters long description:
iPROS24 advanced notices for WordPress.
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
Success! There were no dangerous files found in this plugin1,480 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 398 | 77 | 859 |
JavaScript | 3 | 213 | 10 | 364 |
CSS | 4 | 50 | 0 | 154 |
PO File | 1 | 48 | 46 | 103 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 47.33 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 13 | 30.23% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 7 | 46.67% |
▷ Anonymous functions | 8 | 53.33% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.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
4 PNG files occupy 0.48MB with 0.31MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 148.81KB | 51.41KB | ▼ 65.45% |
screenshot-3.png | 76.55KB | 29.65KB | ▼ 61.27% |
screenshot-1.png | 196.54KB | 65.71KB | ▼ 66.56% |
screenshot-4.png | 72.75KB | 28.51KB | ▼ 60.81% |