Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/manchete-atual-newsfeed/mancheteatual-newsfeed.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; newsfeed has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼50.70ms] Passed 4 tests
A check of server-side resources used by Manchete Atual - Newsfeed
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.58 ▼32.95 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.98 ▼40.87 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.95 ▼40.39 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.77 ▼88.58 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.43 ▼27.20 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_newsfeed |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Manchete Atual - Newsfeed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.62 ▼0.75 | 1.70 ▼0.14 | 40.94 ▼0.86 |
Dashboard /wp-admin | 2,211 ▲20 | 4.84 ▼0.02 | 100.97 ▼7.32 | 39.53 ▼3.62 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.05 ▲0.06 | 40.35 ▲4.11 | 35.32 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,539 ▲19 | 18.48 ▼4.74 | 635.95 ▼4.67 | 54.59 ▲8.80 |
Media Library /wp-admin/upload.php | 1,390 ▲8 | 4.20 ▼0.01 | 101.46 ▲3.47 | 45.90 ▲1.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/manchete-atual-newsfeed/mancheteatual-newsfeed.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; newsfeed has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_newsfeed
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- 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)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/manchete-atual-newsfeed/mancheteatual-newsfeed.php:12
- > PHP Fatal error
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 96% 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
8 plugin tags: notcias, lista, brasil, newsfeed, feed...
manchete-atual-newsfeed/mancheteatual-newsfeed.php 92% from 13 tests
The main PHP script in "Manchete Atual - Newsfeed" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("manchete-atual-newsfeed.php" instead of "mancheteatual-newsfeed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin116 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 20 | 108 |
CSS | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 0 | |
▷ Named functions | 0 | 0.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
No PNG images were found in this plugin