10% after-content

Code Review | After Content

WordPress plugin After Content scored10%from 54 tests.

About plugin

  • Plugin page: after-content
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2014
  • Latest release: Mar 7, 2014
  • Number of updates: 8
  • Update frequency: every 6.6 days
  • Top authors: laura20 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,236 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/after-content/inc/post-meta.php+55
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼0.94MB] [CPU: ▼54.65ms] Passed 4 tests

A check of server-side resources used by After Content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.06 ▼0.409.17 ▼28.87
Dashboard /wp-admin3.08 ▼0.2612.14 ▼51.42
Posts /wp-admin/edit.php3.08 ▼0.2711.51 ▼32.80
Add New Post /wp-admin/post-new.php3.08 ▼2.8010.39 ▼105.51
Media Library /wp-admin/upload.php3.08 ▼0.1514.59 ▼18.52
Post Pagination /wp-admin/admin.php?page=_options&tab=03.089.73
Import / Export /wp-admin/admin.php?page=_options&tab=import_export_default3.0811.60
Custom CSS /wp-admin/admin.php?page=_options&tab=83.0810.27
Post meta /wp-admin/admin.php?page=_options&tab=43.0811.52
Text /wp-admin/admin.php?page=_options&tab=53.0811.67
Image /wp-admin/admin.php?page=_options&tab=63.0811.66
Banner /wp-admin/admin.php?page=_options&tab=73.0812.32
Social Buttons /wp-admin/admin.php?page=_options&tab=33.0810.50
Author info /wp-admin/admin.php?page=_options&tab=23.0811.29
Related Content /wp-admin/admin.php?page=_options&tab=13.0811.14

Server storage [IO: ▲5.50MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 359 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
afc_opt
Redux_Tracking_Hash
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by After Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,089 ▲32815.19 ▲0.9074.93 ▲73.1938.55 ▼5.19
Dashboard /wp-admin2,297 ▲1235.65 ▲0.0491.04 ▲5.7339.66 ▲1.75
Posts /wp-admin/edit.php2,202 ▲1022.01 ▲0.0235.35 ▼6.1235.98 ▲0.27
Add New Post /wp-admin/post-new.php1,608 ▲8223.24 ▲0.15680.05 ▲77.7561.08 ▼9.97
Media Library /wp-admin/upload.php1,502 ▲1054.15 ▼0.01111.26 ▲8.5947.50 ▲6.11
Post Pagination /wp-admin/admin.php?page=_options&tab=02,3817.96140.5242.88
Import / Export /wp-admin/admin.php?page=_options&tab=import_export_default2,3857.96132.9335.58
Custom CSS /wp-admin/admin.php?page=_options&tab=82,3848.02139.1140.41
Post meta /wp-admin/admin.php?page=_options&tab=42,3827.98134.8636.94
Text /wp-admin/admin.php?page=_options&tab=52,3878.05118.6935.21
Image /wp-admin/admin.php?page=_options&tab=62,3797.99117.7735.73
Banner /wp-admin/admin.php?page=_options&tab=72,3818.01121.9335.47
Social Buttons /wp-admin/admin.php?page=_options&tab=32,3887.97118.0138.00
Author info /wp-admin/admin.php?page=_options&tab=22,3787.98126.3736.54
Related Content /wp-admin/admin.php?page=_options&tab=12,3827.97136.5933.56

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/after-content/inc/post-meta.php+55
    Array and string offset access syntax with curly braces is deprecated
  • This plugin does not fully uninstall, leaving 8 options in the database
    • afc_opt
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • Redux_Tracking_Hash
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=_options&tab=1
    • > Deprecated in wp-content/plugins/after-content/inc/post-meta.php+55
    Array and string offset access syntax with curly braces is deprecated
  • 50 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=_options&tab=1
    • > Warning in wp-content/plugins/after-content/ReduxFramework/ReduxCore/extensions/customizer/extension_customizer.php+343
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=_options&tab=1
    • > Notice in wp-content/plugins/after-content/ReduxFramework/ReduxCore/inc/tracking.php+37
    Trying to access array offset on value of type bool
  • 90 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=_options&tab=1
    • > Warning in wp-content/plugins/after-content/ReduxFramework/ReduxCore/framework.php+2601
    A non-numeric value encountered

SRP 50% 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
The following issues need your attention
  • 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ReduxFramework' not found in wp-content/plugins/after-content/ReduxFramework/ReduxCore/inc/validation/email/validation_email.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ReduxFramework' not found in wp-content/plugins/after-content/ReduxFramework/ReduxCore/inc/validation/colorrgba/validation_colorrgba.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ReduxFramework' not found in wp-content/plugins/after-content/ReduxFramework/ReduxCore/inc/validation/no_special_chars/validation_no_special_chars.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ReduxFramework' not found in wp-content/plugins/after-content/ReduxFramework/ReduxCore/inc/validation/js/validation_js.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/after-content/inc/social-profiles.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'ReduxFramework' not found in wp-content/plugins/after-content/ReduxFramework/ReduxCore/inc/validation/not_empty/validation_not_empty.php:2
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/after-content/ReduxFramework/ReduxCore/extensions/customizer/extension_customizer.php on line 324
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/after-content/ReduxFramework/ReduxCore/inc/fields/select/elusive-icons.php:309
    • > PHP Fatal error
      Uncaught Error: Class 'ReduxFramework' not found in wp-content/plugins/after-content/ReduxFramework/ReduxCore/inc/validation/css/validation_css.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ReduxFramework' not found in wp-content/plugins/after-content/ReduxFramework/ReduxCore/inc/validation/html/validation_html.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=_options&tab=1
    • > Javascript (severe) in unknown
    /wp-content/plugins/after-content/ReduxFramework/ReduxCore/assets/js/redux.min.js?ver=1394183286 1:21385 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Post pagination options.), #2 (Related content options.), #3 (Author info options.), #4 (Social sharing options.), #5 (Post meta options.), #6 (Text options.), #7 (Image options.), #8 (Banner options.)
You can look at the official readme.txt

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

The main PHP script in "After Content" version 1.5 is automatically included on every request by WordPress
130 characters long description:
Add more content after post content: related content, author info, post pagination, social sharing buttons, post meta, image, text

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin28,429 lines of code in 287 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1192,2222,07910,172
PHP722,4174,2288,819
CSS386603294,949
LESS26219432,961
Sass24301,057
SVG100309
Markdown228064
Bourne Shell121052
JSON30045
HTML1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity30.26
▷ Minimum class complexity1.00
▷ Maximum class complexity574.00
Average method complexity7.08
▷ Minimum method complexity1.00
▷ Maximum method complexity95.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes61
▷ Abstract classes00.00%
▷ Concrete classes61100.00%
▷ Final classes00.00%
Methods294
▷ Static methods41.36%
▷ Public methods28797.62%
▷ Protected methods00.00%
▷ Private methods72.38%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
33 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ReduxFramework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
ReduxFramework/ReduxCore/inc/fields/spinner/arrow_left.png0.15KB0.12KB▼ 16.67%
ReduxFramework/ReduxCore/assets/img/3cl.png3.08KB0.33KB▼ 89.13%
ReduxFramework/ReduxCore/assets/img/3cr.png2.98KB0.34KB▼ 88.66%
ReduxFramework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%