Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.29ms] Passed 4 tests
Analyzing server-side resources used by Better Press Newsfeed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.29 ▲2.50 |
Dashboard /wp-admin | 5.70 ▲2.36 | 10,055.17 ▲9,997.23 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.51 ▼2.70 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.92 ▼5.31 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.22 ▲0.35 |
Server storage [IO: ▲0.01MB] [DB: ▲0.48MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Better Press Newsfeed
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲122 | 14.17 ▼0.18 | 1.56 ▼0.18 | 37.95 ▼0.39 |
Dashboard /wp-admin | 2,296 ▲115 | 5.59 ▼0.14 | 82.32 ▼15.96 | 42.85 ▲2.16 |
Posts /wp-admin/edit.php | 2,100 ▲18 | 1.96 ▼0.05 | 33.67 ▼4.60 | 33.52 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.41 ▲0.33 | 581.08 ▼95.63 | 55.52 ▲3.70 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▲0.00 | 97.36 ▼4.07 | 41.13 ▼7.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.48MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/better-press-newsfeed/better-press-newsfeed.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: wp tavern, post status, news feeds, dashboard widgets
better-press-newsfeed/better-press-newsfeed.php 92% from 13 tests
The main PHP file in "Better Press Newsfeed" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("3.0" instead of "3.8")
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
Everything looks great! No dangerous files found in this plugin88 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 82 | 88 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected