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.12MB] [CPU: ▼7.07ms] Passed 4 tests
This is a short check of server-side resources used by WP Featured Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.94 ▼3.33 |
Dashboard /wp-admin | 3.43 ▲0.12 | 49.51 ▼1.30 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 52.95 ▼0.79 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 87.19 ▼22.44 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.90 ▼1.20 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Featured Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲101 | 13.66 ▼0.72 | 4.71 ▲2.99 | 40.27 ▼4.67 |
Dashboard /wp-admin | 2,268 ▲62 | 4.91 ▲0.05 | 98.16 ▼10.01 | 37.07 ▼10.84 |
Posts /wp-admin/edit.php | 2,151 ▲48 | 2.07 ▲0.09 | 36.75 ▲1.07 | 36.21 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 23.22 ▲0.10 | 630.32 ▼57.09 | 51.53 ▼7.28 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.23 ▼0.01 | 103.02 ▼5.36 | 48.15 ▲1.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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 no errors were found, this is by no means 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 output text when accessed directly:
- > /wp-content/plugins/wp-featured-posts/templates/featured-posts.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-featured-posts/wp-featured-posts.php:19
- > PHP Notice
Undefined variable: featured_posts in wp-content/plugins/wp-featured-posts/templates/featured-posts.php on line 39
- > PHP Notice
Undefined variable: show_select_post in wp-content/plugins/wp-featured-posts/templates/featured-posts.php on line 5
- > PHP Notice
Undefined variable: title in wp-content/plugins/wp-featured-posts/templates/featured-posts.php on line 2
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #2, #3 in wp-featured-posts/assets to your readme.txt
wp-featured-posts/wp-featured-posts.php Passed 13 tests
The principal PHP file in "WP Featured Posts" v. 1.0.7 is loaded by WordPress automatically on each request
79 characters long description:
Set featured posts, sortable and sticky custom post type. Compatible with WPML.
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
Good job! No executable or dangerous file extensions detected901 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 166 | 165 | 717 |
JavaScript | 4 | 39 | 5 | 129 |
CSS | 2 | 0 | 0 | 55 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 30.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 3 | 10.00% |
▷ Public methods | 28 | 93.33% |
▷ Protected methods | 1 | 3.33% |
▷ Private methods | 1 | 3.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
There were not PNG files found in your plugin