Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.87ms] Passed 4 tests
Analyzing server-side resources used by Ascending Posts by FlyPlugins
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 46.51 ▲2.65 |
Dashboard /wp-admin | 3.34 ▼0.01 | 61.37 ▼2.15 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.58 ▼3.52 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.26 ▼14.28 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.48 ▲0.48 |
Ascending Post /wp-admin/options-general.php?page=ascending-posts/ascendingposts.php | 3.20 | 29.83 |
Server storage [IO: ▲0.03MB] [DB: ▲0.19MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Ascending Posts by FlyPlugins
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.35 ▼1.02 | 2.32 ▲0.50 | 48.30 ▲4.16 |
Dashboard /wp-admin | 2,211 ▲20 | 5.08 ▲0.16 | 108.20 ▼14.48 | 43.01 ▼4.70 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 2.02 ▲0.01 | 40.20 ▲1.23 | 32.69 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,533 ▲16 | 23.18 ▲5.63 | 690.45 ▲24.14 | 51.87 ▼8.07 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.24 ▲0.04 | 99.25 ▼1.27 | 44.05 ▼3.00 |
Ascending Post /wp-admin/options-general.php?page=ascending-posts/ascendingposts.php | 901 | 2.05 | 25.75 | 37.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.19MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ascending-posts/ascendingposts.php
- > Notice in wp-content/plugins/ascending-posts/fly_plugins_tools.php+33
Undefined property: Fly_Plugin_Admin::$toc
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× 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/ascending-posts/fly_plugins_tools.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ascending-posts/fly_plugins_tools.php:16
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: descending posts, order posts ascending, order posts descending, ascending posts
ascending-posts/ascendingposts.php 85% from 13 tests
The principal PHP file in "Ascending Posts by FlyPlugins" v. 1.6 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ascending-posts.php" instead of "ascendingposts.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
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
Everything looks great! No dangerous files found in this plugin232 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 54 | 174 |
CSS | 1 | 16 | 0 | 58 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/email_sub.png | 0.74KB | 0.81KB | 0.00% |
images/facebook-icon.png | 0.72KB | 0.90KB | 0.00% |
images/google-plus-icon.png | 0.67KB | 0.90KB | 0.00% |
images/fly32x32.png | 5.06KB | 1.52KB | ▼ 69.90% |
images/youtube-icon.png | 3.39KB | 1.03KB | ▼ 69.58% |