Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼142.28ms] Passed 4 tests
Analyzing server-side resources used by Most shared content
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 33.49 ▼3.03 |
Dashboard /wp-admin | 3.08 ▲0.02 | 45.14 ▼1.39 |
Posts /wp-admin/edit.php | 3.14 ▲0.02 | 41.45 ▼2.79 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 87.99 ▼558.88 |
Media Library /wp-admin/upload.php | 3.03 ▲0.01 | 35.12 ▼4.41 |
Most shared content /wp-admin/options-general.php?page=shared | 2.97 | 26.46 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Most shared content
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲103 | 15.86 ▲0.25 | 8.93 ▼2.11 | 49.97 ▲1.29 |
Dashboard /wp-admin | 3,000 ▲66 | 6.09 ▼0.10 | 135.51 ▼9.63 | 113.46 ▼0.40 |
Posts /wp-admin/edit.php | 2,757 ▲18 | 2.72 ▼0.00 | 64.13 ▲3.84 | 86.96 ▲2.07 |
Add New Post /wp-admin/post-new.php | 1,673 ▼1,963 | 19.20 ▲4.24 | 379.33 ▼65.22 | 117.18 ▲7.72 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▲0.01 | 146.55 ▼5.33 | 119.26 ▼5.60 |
Most shared content /wp-admin/options-general.php?page=shared | 1,011 | 2.09 | 49.37 | 67.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
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
- > GET request to /wp-admin/options-general.php?page=shared
- > Notice in wp-content/plugins/most-shared-content/shares.php+88
Undefined index: regen
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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/most-shared-content/shares.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Screenshots: Screenshot #1 (Admin Area) image not found
- Plugin Name: Please specify the plugin name on the first line (
=== most-shared-content ===
)
most-shared-content/shares.php 92% from 13 tests
The primary PHP file in "Most shared content" version 0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("most-shared-content.php" instead of "shares.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
Success! There were no dangerous files found in this plugin108 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 21 | 108 |
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.26 |
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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot1.png | 37.82KB | 10.49KB | ▼ 72.28% |