84% project-megaphone-banner

Code Review | Project Megaphone Banner

WordPress plugin Project Megaphone Banner scored 84% from 54 tests.

About plugin

  • Plugin page: project-megaphone...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2013
  • Latest release: Oct 22, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Braunson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,228 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.48ms] Passed 4 tests

A check of server-side resources used by Project Megaphone Banner
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.04 ▼8.42
Dashboard /wp-admin3.31 ▲0.0043.26 ▼1.00
Posts /wp-admin/edit.php3.36 ▲0.0044.23 ▼4.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.04 ▲3.02
Media Library /wp-admin/upload.php3.23 ▲0.0031.98 ▼0.29

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Project Megaphone Banner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.22 ▼1.163.24 ▲1.2839.72 ▼5.00
Dashboard /wp-admin2,206 ▲155.86 ▼0.0395.97 ▼2.0437.91 ▼7.17
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0541.04 ▲6.0035.16 ▲3.97
Add New Post /wp-admin/post-new.php1,542 ▲2818.52 ▲1.02600.40 ▼70.0846.33 ▼12.93
Media Library /wp-admin/upload.php1,388 ▼04.14 ▼0.0795.33 ▼12.5442.63 ▼6.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/project-megaphone-banner/project-megaphone.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
3 plugin tags: banner, project megaphone, megaphone

project-megaphone-banner/project-megaphone.php 92% from 13 tests

The main PHP script in "Project Megaphone Banner" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("project-megaphone-banner.php" instead of "project-megaphone.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 detected16 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP172615
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin