Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/manchete-atual-fotojornal/mancheteatual-fotojornal.php+185
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.76ms] Passed 4 tests
Analyzing server-side resources used by Manchete Atual - Fotojornal
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.12 ▼39.32 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.94 ▼40.39 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.45 ▼40.73 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.37 ▼82.60 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.36 ▼28.13 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_fotojornal |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Manchete Atual - Fotojornal: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.98 ▲0.41 | 4.99 ▲0.23 | 36.64 ▼1.12 |
Dashboard /wp-admin | 2,210 ▲18 | 5.84 ▲0.85 | 103.12 ▼9.05 | 39.59 ▼4.77 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.03 | 42.23 ▲1.97 | 36.42 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,518 ▼15 | 23.24 ▲0.00 | 599.78 ▼87.39 | 47.53 ▼12.14 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▼0.02 | 95.21 ▼3.39 | 39.51 ▼4.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/manchete-atual-fotojornal/mancheteatual-fotojornal.php+185
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_fotojornal
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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 | 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/manchete-atual-fotojornal/mancheteatual-fotojornal.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: foto, brasil, notcias, jornal, manchetes...
manchete-atual-fotojornal/mancheteatual-fotojornal.php 92% from 13 tests
Analyzing the main PHP file in "Manchete Atual - Fotojornal" version 1.0.3
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("manchete-atual-fotojornal.php" instead of "mancheteatual-fotojornal.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected668 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 100 | 17 | 452 |
PHP | 1 | 16 | 21 | 155 |
CSS | 1 | 17 | 5 | 61 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin