84% super-advanced-posts

Code Review | Super Advanced Posts

WordPress plugin Super Advanced Posts scored84%from 54 tests.

About plugin

  • Plugin page: super-advanced-posts
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Mar 10, 2015
  • Latest release: Feb 17, 2019
  • Number of updates: 38
  • Update frequency: every 37.9 days
  • Top authors: tarunyaduvanshi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,873 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.14ms] Passed 4 tests

A check of server-side resources used by Super Advanced Posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.00 ▼2.52
Dashboard /wp-admin3.39 ▲0.0949.46 ▲1.41
Posts /wp-admin/edit.php3.44 ▲0.0850.21 ▼0.60
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.95 ▼17.64
Media Library /wp-admin/upload.php3.31 ▲0.0837.95 ▼3.79

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_super_advanced_posts
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Super Advanced Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3113.23 ▼1.014.98 ▲3.1743.39 ▼4.55
Dashboard /wp-admin2,209 ▲214.88 ▼0.00115.11 ▲8.6945.98 ▲1.55
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0235.92 ▼4.7634.79 ▲2.83
Add New Post /wp-admin/post-new.php1,520 ▼2223.35 ▲5.20643.69 ▼10.7662.05 ▼2.30
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.0598.41 ▼14.4945.05 ▼3.28

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_super_advanced_posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/super-advanced-posts/include/admin-function.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/super-advanced-posts/include/admin-function.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Frentend Display Post), #2 (The widget configuration dialog.)
The official readme.txt might help

super-advanced-posts/super-advanced-posts.php Passed 13 tests

This is the main PHP file of "Super Advanced Posts" version 3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
119 characters long description:
Adds a widget that can display recent posts and other posts from All categories and taxonomy or from custom post types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected478 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP27012444
CSS10034

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity60.00
▷ Minimum class complexity60.00
▷ Maximum class complexity60.00
Average method complexity15.75
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.96MB with 0.60MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-4.png453.25KB108.81KB▼ 75.99%
screenshot-2.png38.63KB19.85KB▼ 48.62%
screenshot-1.png453.25KB108.81KB▼ 75.99%
images/screenshot-3.png38.63KB19.85KB▼ 48.62%