Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.31MB] [CPU: ▼16.76ms] Passed 4 tests
A check of server-side resources used by Reveal Box
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 36.36 ▼13.42 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.99 ▼3.27 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 58.11 ▲1.55 |
Add New Post /wp-admin/post-new.php | 4.61 ▼1.27 | 45.25 ▼51.88 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.62 ▲2.23 |
Reveal Box /wp-admin/options-general.php?page=rb-options | 3.19 | 31.48 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Reveal Box: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.70 ▼0.58 | 2.59 ▲0.80 | 42.42 ▼4.94 |
Dashboard /wp-admin | 2,210 ▲22 | 5.83 ▼0.07 | 101.37 ▼19.48 | 39.28 ▼4.11 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.99 ▼0.02 | 36.21 ▼1.66 | 32.93 ▲0.74 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.62 ▼5.60 | 662.01 ▼11.59 | 56.22 ▼6.00 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.19 | 99.30 ▼6.64 | 45.03 ▲2.30 |
Reveal Box /wp-admin/options-general.php?page=rb-options | 1,221 | 3.30 | 45.80 | 39.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rb-options
- > Notice in wp-content/plugins/reveal-box/includes/admin-page.php+32
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=rb-options
- > User deprecated in wp-includes/functions.php+5737
Function wp_editor() was called with an argument that is deprecated since version 3.9.0! TinyMCE editor IDs cannot have brackets.
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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reveal-box/includes/scripts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reveal-box/includes/admin-page.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reveal-box/includes/display-functions.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/reveal-box/reveal-box.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== reveal-box ===
) - Screenshots: These screenshots do not have images: #1 (The modal box in action), #2 (Here you can enter some settings), #3 (On the top right you can see how to modal opens)
reveal-box/reveal-box.php Passed 13 tests
The main PHP script in "Reveal Box" version 0.3 is automatically included on every request by WordPress
63 characters long description:
A plugin wich uses the jQuery modal plugin called Reveal (Zurb)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected250 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 22 | 36 | 102 |
PHP | 4 | 25 | 17 | 84 |
CSS | 1 | 6 | 3 | 64 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/modal-gloss.png | 2.84KB | 2.69KB | ▼ 5.43% |
includes/img/plus.png | 2.16KB | 1.53KB | ▼ 29.31% |