10% manchete-atual-fotojornal

Code Review | Manchete Atual - Fotojornal

WordPress plugin Manchete Atual - Fotojornal scored10%from 54 tests.

About plugin

  • Plugin page: manchete-atual-fo...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.5.2
  • WordPress version: 6.3.1
  • First release: Aug 5, 2013
  • Latest release: Aug 12, 2013
  • Number of updates: 10
  • Update frequency: every 0.8 days
  • Top authors: aeiouads (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,250 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.12 ▼39.32
Dashboard /wp-admin2.05 ▼1.265.94 ▼40.39
Posts /wp-admin/edit.php2.05 ▼1.315.45 ▼40.73
Add New Post /wp-admin/post-new.php2.05 ▼3.845.37 ▼82.60
Media Library /wp-admin/upload.php2.05 ▼1.186.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.98 ▲0.414.99 ▲0.2336.64 ▼1.12
Dashboard /wp-admin2,210 ▲185.84 ▲0.85103.12 ▼9.0539.59 ▼4.77
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0342.23 ▲1.9736.42 ▼0.24
Add New Post /wp-admin/post-new.php1,518 ▼1523.24 ▲0.00599.78 ▼87.3947.53 ▼12.14
Media Library /wp-admin/upload.php1,392 ▲44.24 ▼0.0295.21 ▼3.3939.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript110017452
PHP11621155
CSS117561

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 code0.14
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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