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.08MB] [CPU: ▼11.35ms] Passed 4 tests
An overview of server-side resources used by Module Positions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.46 ▼6.01 |
Dashboard /wp-admin | 3.40 ▲0.06 | 47.90 ▼21.48 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.93 ▼6.69 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 90.33 ▼11.23 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.96 ▲4.80 |
Module Positions /wp-admin/admin.php?page=modulepositions_positions | 3.29 | 35.34 |
Content /wp-admin/edit.php?post_type=modulepositions | 3.37 | 38.88 |
Module Positions /wp-admin/options-general.php?page=modulepositions_settings | 3.29 | 34.82 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
module_positions_positions |
db_upgraded |
widget_recent-posts |
widget_module_positions_widget |
module_positions_settings |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Module Positions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 13.81 ▼0.57 | 1.63 ▼0.28 | 42.19 ▼1.70 |
Dashboard /wp-admin | 2,251 ▲48 | 5.84 ▲0.98 | 104.55 ▼13.51 | 39.84 ▼4.31 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.23 ▲0.19 | 36.48 ▼0.80 | 34.12 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 17.60 ▼0.01 | 682.78 ▲28.91 | 52.35 ▲4.40 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.28 ▲0.01 | 104.41 ▼0.05 | 48.49 ▲4.04 |
Module Positions /wp-admin/admin.php?page=modulepositions_positions | 878 | 1.83 | 36.39 | 29.55 |
Content /wp-admin/edit.php?post_type=modulepositions | 1,129 | 2.17 | 33.08 | 30.02 |
Module Positions /wp-admin/options-general.php?page=modulepositions_settings | 890 | 1.82 | 28.87 | 34.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_module_positions_widget
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)
Even though no errors were found, this is by no means 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/module-positions/module-positions-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/module-positions/module-positions-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/module-positions/module-positions-js.php:12
- > 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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
module-positions/module-positions.php Passed 13 tests
This is the main PHP file of "Module Positions" version 1.2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
This Plugin for WordPress is an simplified equivalent to Joomla's module positions.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,706 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 341 | 184 | 1,130 |
CSS | 1 | 61 | 4 | 326 |
PO File | 2 | 100 | 206 | 250 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 113.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 220.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.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 | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-order.png | 2.83KB | 0.16KB | ▼ 94.45% |
img/icon-subs.png | 17.75KB | 0.79KB | ▼ 95.56% |
img/icon-open.png | 17.35KB | 0.17KB | ▼ 99.03% |
img/icon-edit.png | 7.45KB | 2.73KB | ▼ 63.34% |