Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼138.98ms] Passed 4 tests
A check of server-side resources used by ER SourceForge Stats
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 35.91 ▲13.94 |
Dashboard /wp-admin | 3.07 ▲0.02 | 45.09 ▼1.76 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 44.48 ▲8.82 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 85.43 ▼562.84 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 32.66 ▼0.12 |
ER SourceForge Stats /wp-admin/options-general.php?page=er-source-forge-stats | 2.99 | 27.06 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for ER SourceForge Stats
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.95 ▲0.42 | 9.46 ▼0.31 | 47.47 ▼1.96 |
Dashboard /wp-admin | 2,978 ▲47 | 5.87 ▼0.14 | 136.51 ▼3.59 | 110.02 ▲0.06 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.00 | 67.10 ▲5.56 | 91.90 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,618 ▲120 | 21.83 ▲3.01 | 284.15 ▼83.93 | 105.62 ▼4.72 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.06 ▲0.05 | 155.28 ▲7.89 | 120.30 ▲2.37 |
ER SourceForge Stats /wp-admin/options-general.php?page=er-source-forge-stats | 1,106 | 2.05 | 60.65 | 69.02 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/er-sourceforge-stats/howto.php
- 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/er-sourceforge-stats/er-sourceforge-stats.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== er-sourceforge-stats ===
)
er-sourceforge-stats/er-sourceforge-stats.php Passed 13 tests
The main PHP script in "ER SourceForge Stats" version 1.0.0 is automatically included on every request by WordPress
114 characters long description:
ER SourceForge Stats allows you to insert SourceForge download statistics into your page using a simple shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin87 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 22 | 28 | 87 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin