10% manchete-atual-newsfeed

Code Review | Manchete Atual - Newsfeed

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

About plugin

  • Plugin page: manchete-atual-ne...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.5.2
  • WordPress version: 6.3.1
  • First release: Aug 9, 2013
  • Latest release: Aug 26, 2013
  • Number of updates: 7
  • Update frequency: every 2.6 days
  • Top authors: aeiouads (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,401 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.58 ▼32.95
Dashboard /wp-admin2.10 ▼1.205.98 ▼40.87
Posts /wp-admin/edit.php2.10 ▼1.265.95 ▼40.39
Add New Post /wp-admin/post-new.php2.10 ▼3.796.77 ▼88.58
Media Library /wp-admin/upload.php2.10 ▼1.136.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.62 ▼0.751.70 ▼0.1440.94 ▼0.86
Dashboard /wp-admin2,211 ▲204.84 ▼0.02100.97 ▼7.3239.53 ▼3.62
Posts /wp-admin/edit.php2,091 ▲22.05 ▲0.0640.35 ▲4.1135.32 ▲0.38
Add New Post /wp-admin/post-new.php1,539 ▲1918.48 ▼4.74635.95 ▼4.6754.59 ▲8.80
Media Library /wp-admin/upload.php1,390 ▲84.20 ▼0.01101.46 ▲3.4745.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP11620108
CSS1008

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 code0.15
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin