84% azurecurve-insult-generator

Code Review | azurecurve Insult Generator

WordPress plugin azurecurve Insult Generator scored84%from 54 tests.

About plugin

  • Plugin page: azurecurve-insult...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: Aug 4, 2018
  • Latest release: Dec 6, 2018
  • Number of updates: 6
  • Update frequency: every 20.8 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /749 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.30ms] Passed 4 tests

A check of server-side resources used by azurecurve Insult Generator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1243.87 ▲0.96
Dashboard /wp-admin3.43 ▲0.1350.11 ▼4.46
Posts /wp-admin/edit.php3.48 ▲0.1348.61 ▼3.29
Add New Post /wp-admin/post-new.php6.01 ▲0.1385.41 ▼6.39
Media Library /wp-admin/upload.php3.35 ▲0.1339.74 ▲4.03
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.3230.03
Insult Generator /wp-admin/admin.php?page=azc-ig3.3234.27

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for azurecurve Insult Generator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲5913.30 ▼1.061.85 ▼0.2940.80 ▼8.23
Dashboard /wp-admin2,219 ▲315.88 ▲0.03100.02 ▼16.9682.16 ▲39.14
Posts /wp-admin/edit.php2,120 ▲312.14 ▲0.1534.27 ▼3.4331.71 ▼3.38
Add New Post /wp-admin/post-new.php1,548 ▲3422.95 ▲5.38739.31 ▲28.3153.59 ▼7.41
Media Library /wp-admin/upload.php1,410 ▲224.26 ▲0.05111.52 ▲3.4583.64 ▲35.99
Plugins /wp-admin/admin.php?page=azc-plugin-menus8292.0526.9432.28
Insult Generator /wp-admin/admin.php?page=azc-ig8362.0126.5128.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-insult-generator/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-insult-generator/includes/menu.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
7 plugin tags: classicpress, medieval, insult, shortcode, wordpress...

azurecurve-insult-generator/azurecurve-insult-generator.php Passed 13 tests

The entry point to "azurecurve Insult Generator" version 2.0.1 is a PHP file that has certain tags in its header comment area
79 characters long description:
Shortcodes which allow user to generate and display modern or medieval insults.

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
Success! There were no dangerous files found in this plugin347 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23326317
CSS20430

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%