84% amazing-neo-brands

Code Review | Name: Amazing Neo Brands

WordPress plugin Name: Amazing Neo Brands scored 84% from 54 tests.

About plugin

  • Plugin page: amazing-neo-brands
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 1, 2021
  • Latest release: May 1, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mudssar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 511 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.47MB] [CPU: ▲1.14ms] Passed 4 tests

This is a short check of server-side resources used by Name: Amazing Neo Brands
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4946.06 ▲4.41
Dashboard /wp-admin3.77 ▲0.4749.16 ▼3.44
Posts /wp-admin/edit.php3.88 ▲0.5348.35 ▲2.06
Add New Post /wp-admin/post-new.php6.35 ▲0.4694.81 ▲4.76
Media Library /wp-admin/upload.php3.69 ▲0.4637.02 ▲1.54

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_amazing-neo-brands

Browser metrics Passed 4 tests

Checking browser requirements for Name: Amazing Neo Brands
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.59 ▼0.805.28 ▲3.6340.10 ▼0.66
Dashboard /wp-admin2,203 ▲485.83 ▲0.2094.70 ▼7.8439.43 ▲1.34
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0435.87 ▼3.8731.47 ▼6.44
Add New Post /wp-admin/post-new.php1,514 ▼317.76 ▲0.23633.02 ▼1.3570.33 ▲18.92
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0092.78 ▼10.2439.99 ▼8.06

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amazing-neo-brands/amazing-neo-brands.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === Name: Amazing Neo Brands === )
Please take inspiration from this readme.txt

amazing-neo-brands/amazing-neo-brands.php 92% from 13 tests

The main PHP file in "Name: Amazing Neo Brands" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,444 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1621751,310
SVG100864
JavaScript1024206
CSS181164

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin