78% azurecurve-display-after-post-content

Code Review | azurecurve Display After Post Content

WordPress plugin azurecurve Display After Post Content scored78%from 54 tests.

About plugin

  • Plugin page: azurecurve-displa...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Dec 6, 2018
  • Number of updates: 13
  • Update frequency: every 111.6 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,278 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.40ms] Passed 4 tests

An overview of server-side resources used by azurecurve Display After Post Content
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.78 ▼1.39
Dashboard /wp-admin3.37 ▲0.0746.42 ▼0.01
Posts /wp-admin/edit.php3.42 ▲0.0641.93 ▼4.46
Add New Post /wp-admin/post-new.php5.95 ▲0.0678.99 ▼27.74
Media Library /wp-admin/upload.php3.29 ▲0.0637.23 ▲6.42
Display After Post Content /wp-admin/admin.php?page=azc-dapc3.2329.31
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.2632.10

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
azc_dapc_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for azurecurve Display After Post Content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10913.32 ▼1.261.93 ▲0.2540.56 ▼5.84
Dashboard /wp-admin2,237 ▲465.88 ▼0.0297.61 ▼5.3082.67 ▲40.81
Posts /wp-admin/edit.php2,117 ▲462.01 ▲0.0034.94 ▼4.9131.08 ▼6.17
Add New Post /wp-admin/post-new.php1,690 ▲17620.27 ▲2.67707.66 ▲85.2645.33 ▼7.87
Media Library /wp-admin/upload.php1,416 ▲284.18 ▲0.01106.94 ▲10.6946.93 ▲4.94
Display After Post Content /wp-admin/admin.php?page=azc-dapc8362.0224.4828.29
Plugins /wp-admin/admin.php?page=azc-plugin-menus8502.0326.4629.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=azc-dapc
    • > Notice in wp-content/plugins/azurecurve-display-after-post-content/azurecurve-display-after-post-content.php+159
    Undefined index: display_after_post_content

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
  • 2× 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/azurecurve-display-after-post-content/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-display-after-post-content/includes/menu.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: index, classicpress, post, wordpress

azurecurve-display-after-post-content/azurecurve-display-after-post-content.php 85% from 13 tests

The main file in "azurecurve Display After Post Content" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 174 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin421 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36861402
CSS20419

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
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%
Functions15
▷ Named functions15100.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
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%