Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/orbisius-just-write/modules/widgets.php+3
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.37ms] Passed 4 tests
An overview of server-side resources used by Orbisius Just Write
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.38 ▼36.56 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.97 ▼48.20 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.66 ▼38.13 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.16 ▼90.57 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.22 ▼29.26 |
Orbisius Just Write /wp-admin/options-general.php?page=orbisius-just-write/orbisius-just-write.php | 2.05 | 6.27 |
Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_orb_just_write_widget_related |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_orb_just_write_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Orbisius Just Write: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.69 ▼0.96 | 1.72 ▼0.18 | 45.70 ▼2.69 |
Dashboard /wp-admin | 2,223 ▲38 | 5.86 ▼0.05 | 102.93 ▼0.37 | 86.34 ▲45.49 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.01 ▲0.01 | 34.20 ▼6.44 | 31.62 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,681 ▲148 | 22.53 ▼0.78 | 665.87 ▼17.86 | 54.47 ▼10.14 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.19 ▼0.01 | 100.99 ▼5.99 | 70.98 ▲26.54 |
Orbisius Just Write /wp-admin/options-general.php?page=orbisius-just-write/orbisius-just-write.php | 960 | 2.02 | 24.00 | 26.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/orbisius-just-write/modules/widgets.php+3
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 8 options in the database
- widget_orb_just_write_widget_related
- can_compress_scripts
- widget_orb_just_write_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=orbisius-just-write/orbisius-just-write.php
- > Deprecated in wp-content/plugins/orbisius-just-write/modules/widgets.php+4
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=orbisius-just-write/orbisius-just-write.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in orb_just_write_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=orbisius-just-write/orbisius-just-write.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in orb_just_write_widget_related is deprecated since version 4.3.0! Use __construct() instead.
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
Please fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-just-write/modules/admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-just-write/modules/front.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-just-write/modules/cpt.php:5
- > PHP Warning
Use of undefined constant ORBISIUS_JUST_WRITE_PLUGIN_NAME - assumed 'ORBISIUS_JUST_WRITE_PLUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/orbisius-just-write/modules/templates/just_write_full_page.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/orbisius-just-write/orbisius-just-write.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/orbisius-just-write/modules/templates/just_write_full_page.php:41
- > PHP Notice
Undefined variable: just_write_cfg in wp-content/plugins/orbisius-just-write/modules/templates/just_write_full_page.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-just-write/modules/widgets.php:3
- > 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 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Shows how the editor box looks like. Super cool.) image required
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
orbisius-just-write/orbisius-just-write.php Passed 13 tests
The principal PHP file in "Orbisius Just Write" v. 1.0.2 is loaded by WordPress automatically on each request
74 characters long description:
Show last viewed post(s) - 3 max, and recommend X number of related posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,777 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 519 | 667 | 2,482 |
JavaScript | 2 | 69 | 39 | 284 |
CSS | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 113 | |
▷ Static methods | 10 | 8.85% |
▷ Public methods | 113 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 31.86KB | 14.35KB | ▼ 54.97% |
modules/images/icon.png | 0.44KB | 0.38KB | ▼ 13.11% |