Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.60ms] Passed 4 tests
Analyzing server-side resources used by OExchange
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.08 ▲1.74 |
Dashboard /wp-admin | 3.32 ▼0.03 | 52.26 ▼11.81 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.56 ▼5.37 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 101.11 ▲6.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.25 ▼6.94 |
OExchange /wp-admin/options-general.php?page=oexchange | 3.25 | 30.79 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for OExchange
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.38 ▲0.00 | 1.95 ▲0.37 | 43.00 ▲2.83 |
Dashboard /wp-admin | 2,202 ▲22 | 5.64 ▼0.01 | 96.04 ▲10.00 | 44.33 ▲1.92 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.13 ▲0.12 | 37.94 ▼1.84 | 32.83 ▼5.75 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 18.29 ▲0.67 | 642.95 ▲36.30 | 73.36 ▲20.84 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.23 ▼0.02 | 102.05 ▼4.79 | 43.29 ▼0.01 |
OExchange /wp-admin/options-general.php?page=oexchange | 853 | 2.04 | 22.90 | 31.35 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=oexchange
- > User deprecated in wp-includes/functions.php+5453
Function wp_specialchars is deprecated since version 2.8.0! Use esc_html() 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
- 2× 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/oexchange/oexchange.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/oexchange/oexchange-xrd.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: bookmarklet, oexchange, like, exchange, share...
oexchange/oexchange.php Passed 13 tests
This is the main PHP file of "OExchange" version 2.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Adds OExchange support to WordPress' "Press This" bookmarklet
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
Good job! No executable or dangerous file extensions detected139 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 39 | 68 | 139 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 12 | |
▷ Static methods | 12 | 100.00% |
▷ Public methods | 12 | 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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin