Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.69ms] Passed 4 tests
This is a short check of server-side resources used by Simple References
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.73 ▼9.79 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.35 ▼3.96 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 48.83 ▲2.42 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 80.13 ▼6.71 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 34.73 ▲1.71 |
References /wp-admin/edit.php?post_type=fnp_references | 3.34 | 34.17 |
Add New /wp-admin/post-new.php?post_type=fnp_references | 3.41 | 41.33 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple References
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲208 | 13.57 ▼0.81 | 8.19 ▲6.40 | 39.74 ▼2.87 |
Dashboard /wp-admin | 2,233 ▲48 | 5.82 ▼0.08 | 108.20 ▲3.93 | 74.21 ▲28.62 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▲0.03 | 38.28 ▲2.89 | 36.51 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,702 ▲188 | 24.63 ▲7.04 | 694.51 ▼3.75 | 67.45 ▲10.48 |
Media Library /wp-admin/upload.php | 1,421 ▲36 | 4.22 ▲0.02 | 111.35 ▲10.62 | 44.47 ▼3.74 |
Options /wp-admin/simple_references.php | 26 | 0.44 | 0.06 | 14.00 |
References /wp-admin/edit.php?post_type=fnp_references | 1,083 | 1.93 | 33.14 | 29.86 |
Add New /wp-admin/post-new.php?post_type=fnp_references | 2,208 | 7.73 | 174.15 | 110.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% 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
Please fix the following
- 1× 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/simple-references/simple_references.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/simple_references.php
- > Network (severe)
wp-admin/simple_references.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
simple-references/simple_references.php 92% from 13 tests
"Simple References" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-references.php" instead of "simple_references.php")
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
No dangerous file extensions were detected1,502 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 155 | 155 | 1,324 |
CSS | 2 | 44 | 24 | 161 |
JavaScript | 2 | 1 | 9 | 12 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 206.00 |
▷ Minimum class complexity | 206.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 6.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 3 | 8.57% |
▷ Public methods | 5 | 14.29% |
▷ Protected methods | 30 | 85.71% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 49 | |
▷ Global constants | 49 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
images/icon-clients_light.png | 2.53KB | 1.13KB | ▼ 55.39% |