Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.71ms] Passed 4 tests
A check of server-side resources used by Publishers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 45.55 ▼0.67 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.45 ▼2.28 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 50.58 ▼0.49 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 96.63 ▲1.34 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.03 ▼3.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Publishers
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,578 ▼222 | 14.15 ▲0.88 | 2.79 ▲0.70 | 44.73 ▲0.67 |
Dashboard /wp-admin | 1,919 ▼287 | 5.56 ▼0.27 | 90.15 ▼6.39 | 76.45 ▲39.88 |
Posts /wp-admin/edit.php | 2,071 ▼18 | 2.02 ▲0.02 | 37.21 ▲3.63 | 36.56 ▲1.12 |
Add New Post /wp-admin/post-new.php | 6,498 ▲4,979 | 20.44 ▼2.40 | 1,128.52 ▲390.00 | 57.42 ▼15.83 |
Media Library /wp-admin/upload.php | 1,370 ▼15 | 4.16 ▲0.01 | 98.38 ▼4.34 | 43.06 ▼0.83 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/publishers/embeds/giphy.php
- > /wp-content/plugins/publishers/embeds/youtube.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: companion plugin, magazines, blogs, publishers
publishers/publishers.php Passed 13 tests
"Publishers" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
Companion plugin for the Publishers theme: https://wordpress.org/themes/publishers/.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin597 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 26 | 52 | 551 |
JavaScript | 1 | 0 | 0 | 46 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 4 | 30.77% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 39 | |
▷ Named functions | 35 | 89.74% |
▷ Anonymous functions | 4 | 10.26% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin