83% all-your-stack-posts

Code Review | All Your Stack Posts

WordPress plugin All Your Stack Posts scored83%from 54 tests.

About plugin

  • Plugin page: all-your-stack-posts
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6
  • WordPress version: 6.3.1
  • First release: Sep 15, 2013
  • Latest release: Oct 1, 2013
  • Number of updates: 3
  • Update frequency: every 5.7 days
  • Top authors: brasofilo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,004 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by All Your Stack Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1242.36 ▼0.10
Dashboard /wp-admin3.37 ▲0.0748.73 ▼0.80
Posts /wp-admin/edit.php3.49 ▲0.1352.38 ▲2.30
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.42 ▼26.50
Media Library /wp-admin/upload.php3.30 ▲0.0741.35 ▲2.11

Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • You have illegally modified 1 file (7.80KB) outside of "wp-content/plugins/all-your-stack-posts/" and "wp-content/uploads/"
    • (new file) wp-content/themes/twentytwentyone/template-stackapp.php
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for All Your Stack Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.26 ▼0.092.14 ▼0.4241.90 ▼9.06
Dashboard /wp-admin2,195 ▲185.63 ▲0.0091.55 ▼0.2142.98 ▼2.29
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0235.30 ▼8.0937.20 ▼4.55
Add New Post /wp-admin/post-new.php1,528 ▼623.44 ▲5.27708.38 ▲47.2652.93 ▼11.80
Media Library /wp-admin/upload.php1,397 ▼34.22 ▼0.01113.20 ▲3.9650.54 ▲2.08

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: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'B5F_All_Your_Stack_Posts' not found in wp-content/plugins/all-your-stack-posts/includes/template-stackapp.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/badge_request.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PagedRequest' not found in wp-content/plugins/all-your-stack-posts/includes/stackphp/inbox_item_request.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: pdf, stackexchange, print, answers, questions

all-your-stack-posts/all-your-stack-posts.php 85% from 13 tests

The main file in "All Your Stack Posts" v. 1.1 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:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)

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 plugin4,839 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP358752,2992,832
JavaScript5841521,629
CSS43927378

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.27
▷ Minimum class complexity1.00
▷ Maximum class complexity95.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes00.00%
Methods259
▷ Static methods3111.97%
▷ Public methods24293.44%
▷ Protected methods20.77%
▷ Private methods155.79%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants37
▷ Global constants12.70%
▷ Class constants3697.30%
▷ Public constants36100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sprites.png16.98KB7.32KB▼ 56.89%
images/rarrow.png3.23KB0.45KB▼ 86.01%
images/app-icon.png18.96KB7.47KB▼ 60.62%
images/larrow.png3.22KB0.46KB▼ 85.82%