Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/latest-post-new/latest-post-new.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; fr_Excerpt_post has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼44.71ms] Passed 4 tests
This is a short check of server-side resources used by LATEST-POST-NEW
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 8.98 ▼32.04 |
Dashboard /wp-admin | 2.29 ▼1.01 | 11.36 ▼37.46 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 11.91 ▼35.91 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 11.08 ▼73.43 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 8.97 ▼23.45 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_fr_excerpt_post |
Browser metrics Passed 4 tests
An overview of browser requirements for LATEST-POST-NEW
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.24 ▲0.08 | 4.75 ▲2.75 | 45.84 ▼0.45 |
Dashboard /wp-admin | 2,206 ▼0 | 5.85 ▼0.04 | 112.81 ▲3.44 | 43.28 ▲0.52 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▼0.01 | 35.24 ▼1.83 | 35.71 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 18.47 ▼4.68 | 632.18 ▼32.59 | 63.06 ▲5.89 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.20 ▼0.02 | 100.56 ▲0.91 | 42.94 ▼2.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in fr_Excerpt_post is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_fr_excerpt_post
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/latest-post-new/latest-post-new.php:12
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: latest articles, post widget, latest post, recent post, recent articles
latest-post-new/latest-post-new.php Passed 13 tests
The entry point to "LATEST-POST-NEW" version 1.0 is a PHP file that has certain tags in its header comment area
132 characters long description:
Select the post type from available post type and add the options, so this plugin will Displays the latest post from that post type.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected202 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 8 | 202 |
PHP code Passed 2 tests
Analyzing 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.21 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin