62% super-post

Code Review | Super Post

WordPress plugin Super Post scored 62% from 54 tests.

About plugin

  • Plugin page: super-post
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 5.8.1
  • First release: Feb 18, 2013
  • Latest release: Sep 7, 2014
  • Number of updates: 31
  • Update frequency: every 18.3 days
  • Top authors: zourbuth (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active / 33,739 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.96MB] [CPU: ▼181.18ms] Passed 4 tests

Analyzing server-side resources used by Super Post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.67 ▼0.1713.10 ▼20.97
Dashboard /wp-admin2.69 ▼0.3713.25 ▼28.29
Posts /wp-admin/edit.php2.69 ▼0.4213.25 ▼32.75
Add New Post /wp-admin/post-new.php2.69 ▼2.7411.50 ▼641.82
Media Library /wp-admin/upload.php2.69 ▼0.3113.06 ▼21.86
Super Post /wp-admin/options-general.php?page=super_post2.6911.94

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 2 new options
New WordPress options
super_post
widget_super-post

Browser metrics Passed 4 tests

Super Post: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,869 ▲27316.36 ▲0.4117.08 ▲6.7246.32 ▲0.11
Dashboard /wp-admin2,980 ▲495.91 ▼0.04132.93 ▼34.77100.40 ▼9.65
Posts /wp-admin/edit.php2,764 ▲252.72 ▼0.0168.58 ▲4.84100.77 ▼1.87
Add New Post /wp-admin/post-new.php2,112 ▲61418.76 ▼0.03369.90 ▼2.24129.72 ▲14.67
Media Library /wp-admin/upload.php1,814 ▲75.03 ▼0.03153.91 ▲2.11123.11 ▼8.81
Super Post /wp-admin/options-general.php?page=super_post1,9825.97117.72137.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in Super_Post_Widget_Class is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin does not fully uninstall, leaving 2 options in the database
    • widget_super-post
    • super_post

Smoke tests 25% 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/options-general.php?page=super_post
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in Super_Post_Widget_Class is deprecated since version 4.3.0! Use __construct() instead.

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
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-post/premium.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-post/utility.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-post/super-post.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/super-post/shortcode.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/super-post/settings.php:588
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/super-post/widget.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=super_post
    • > Network (severe)
    wp-content/plugins/super-post/js/jquery.settings.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=super_post
    • > Network (severe)
    wp-content/plugins/super-post/css/widget.css - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=super_post
    • > Console-api (warning) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at Object.init (/wp-content/plugins/super-post/js/jquery.dialog.js?ver=5.8.1:12:23)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/super-post/js/jquery.dialog.js?ver=5.8.1:71:40)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30038)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:30340)" undefined
    • > GET request to /wp-admin/options-general.php?page=super_post
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.6.0 1:31702 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 45 tag instead of maximum 10
Please take inspiration from this readme.txt

super-post/super-post.php 92% from 13 tests

The entry point to "Super Post" version 1.1.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 235 characters long)

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
Everything looks great! No dangerous files found in this plugin3,623 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP94334911,964
CSS33234914
PO File1155203396
JavaScript28030349

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity48.00
▷ Minimum class complexity24.00
▷ Maximum class complexity61.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods46
▷ Static methods00.00%
▷ Public methods46100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
11 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/comments.png0.43KB0.54KB0.00%
img/stars-half.png0.54KB0.47KB▼ 13.49%
img/thumbnail.png2.57KB2.45KB▼ 4.67%
img/settings.png50.86KB32.36KB▼ 36.39%
img/stars-none.png0.49KB0.41KB▼ 16.00%