79% after-content-widgets

Code Review | After Content Widgets

WordPress plugin After Content Widgets scored79%from 54 tests.

About plugin

  • Plugin page: after-content-wid...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2017
  • Latest release: Feb 6, 2017
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: sergeliatko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /781 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.05MB] [CPU: ▼0.81ms] Passed 4 tests

Analyzing server-side resources used by After Content Widgets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.20 ▼3.07
Dashboard /wp-admin3.36 ▲0.0651.37 ▲3.53
Posts /wp-admin/edit.php3.47 ▲0.1249.45 ▲0.04
Add New Post /wp-admin/post-new.php5.94 ▲0.0696.30 ▲3.53
Media Library /wp-admin/upload.php3.28 ▲0.0535.81 ▼3.72

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for After Content Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.081.86 ▲0.0845.84 ▲2.75
Dashboard /wp-admin2,195 ▲155.62 ▼0.0395.05 ▼0.0842.24 ▲3.55
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0034.30 ▼7.4733.47 ▼5.46
Add New Post /wp-admin/post-new.php6,221 ▲4,69226.01 ▲2.81888.23 ▲225.4763.03 ▲10.63
Media Library /wp-admin/upload.php1,403 ▼04.15 ▼0.04100.13 ▼13.9547.45 ▼2.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/after-content-widgets/after-content-widgets.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/after-content-widgets/includes/Content_Widgets_Control.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/after-content-widgets/includes/content-widgets.php:447

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: widget area, widget, content widgets, widgets

after-content-widgets/after-content-widgets.php Passed 13 tests

The entry point to "After Content Widgets" version 1.0 is a PHP file that has certain tags in its header comment area
103 characters long description:
Easy way to add after content widgets. Supports posts, pages and custom post types. Light and flexible.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected261 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP392203261

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity9.67
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1257.14%
▷ Protected methods838.10%
▷ Private methods14.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin