74% neon-text

Code Review | Neon text

WordPress plugin Neon text scored74%from 54 tests.

About plugin

  • Plugin page: neon-text
  • Plugin version: 1.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2019
  • Latest release: Oct 26, 2023
  • Number of updates: 13
  • Update frequency: every 130.6 days
  • Top authors: freeben (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,324 total downloads

Benchmarks

Plugin footprint 65% 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.92MB] [CPU: ▼34.45ms] Passed 4 tests

Analyzing server-side resources used by Neon text
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.51 ▼0.24
Dashboard /wp-admin3.02 ▼0.2822.10 ▼23.93
Posts /wp-admin/edit.php3.02 ▼0.3322.50 ▼23.22
Add New Post /wp-admin/post-new.php3.02 ▼2.8622.80 ▼73.00
Media Library /wp-admin/upload.php3.02 ▼0.2020.59 ▼17.64

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Neon text
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲15413.52 ▼1.108.71 ▲7.2439.96 ▲1.42
Dashboard /wp-admin2,211 ▲345.56 ▼0.1385.86 ▼1.7038.92 ▲0.17
Posts /wp-admin/edit.php2,113 ▲132.00 ▲0.0536.01 ▼4.0333.77 ▼3.21
Add New Post /wp-admin/post-new.php1,539 ▲1323.15 ▼0.44674.28 ▼10.8553.07 ▼21.77
Media Library /wp-admin/upload.php1,416 ▲224.18 ▼0.0892.96 ▼4.7842.90 ▼1.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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)
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neon-text/neon-text.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: animated counters

neon-text/neon-text.php 92% from 13 tests

Analyzing the main PHP file in "Neon text" version 1.3
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin488 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36219235
PHP1209143
CSS13070
PO File17740

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions6
▷ Named functions6100.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
No PNG files were detected