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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.41ms] Passed 4 tests
Analyzing server-side resources used by Spots
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.22 ▼2.12 |
Dashboard /wp-admin | 3.38 ▲0.07 | 57.52 ▼0.91 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 55.55 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 112.41 ▼23.76 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 42.89 ▲3.68 |
Settings /wp-admin/edit.php?post_type=spot&page=spots | 3.27 | 39.66 |
Add New /wp-admin/post-new.php?post_type=spot | 3.42 | 62.30 |
Spots /wp-admin/edit.php?post_type=spot | 3.34 | 58.96 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
icit_spots_setup |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_spot |
Browser metrics Passed 4 tests
Checking browser requirements for Spots
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲62 | 13.69 ▼0.83 | 2.02 ▲0.14 | 44.37 ▼0.21 |
Dashboard /wp-admin | 2,240 ▲34 | 4.83 ▼1.03 | 118.87 ▼1.09 | 44.40 ▼0.85 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.00 ▼0.05 | 43.17 ▼2.89 | 34.52 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,568 ▲34 | 23.02 ▼0.10 | 701.88 ▼87.36 | 68.67 ▲16.63 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.19 ▼0.12 | 105.55 ▼3.88 | 41.90 ▼5.17 |
Settings /wp-admin/edit.php?post_type=spot&page=spots | 918 | 1.99 | 36.10 | 30.70 |
Add New /wp-admin/post-new.php?post_type=spot | 2,328 | 7.63 | 188.96 | 64.86 |
Spots /wp-admin/edit.php?post_type=spot | 1,089 | 2.00 | 38.06 | 31.92 |
Uninstaller [IO: ✅] [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 8 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- icit_spots_setup
- theysaidso_admin_options
- widget_spot
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
Even though everything seems fine, this is not 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spots/includes/icit-plugin.php:23
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Spots widget when you first use it), #2 (The Spots custom post type in action), #3 (Selecting a pre-existing Spot), #4 (The visual editor in Spots), #5 (A Spot output in a sidebar as a widget), #6 (A Template Tag replacement of content in the footer of the 2010 theme.)
- Plugin Name: You should set the name of your plugin on the first line (
=== spots ===
)
spots/icit-spots.php 85% from 13 tests
The entry point to "Spots" version 1.3.10 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("spots.php" instead of "icit-spots.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 246 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
Everything looks great! No dangerous files found in this plugin2,967 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 423 | 302 | 1,396 |
JavaScript | 4 | 151 | 122 | 929 |
PO File | 3 | 186 | 186 | 482 |
CSS | 2 | 31 | 1 | 160 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 35.60 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 10 | 15.15% |
▷ Public methods | 66 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon_working.png | 63.65KB | 2.48KB | ▼ 96.10% |
assets/icon.png | 4.99KB | 2.48KB | ▼ 50.30% |