84% all-posts-default-cat

Code Review | All Posts Default Category

WordPress plugin All Posts Default Category scored84%from 54 tests.

About plugin

  • Plugin page: all-posts-default...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Sep 5, 2015
  • Number of updates: 9
  • Update frequency: every 4.9 days
  • Top authors: jake.stookey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,141 total downloads


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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.97ms] Passed 4 tests

A check of server-side resources used by All Posts Default Category
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.44 ▲0.40
Dashboard /wp-admin3.31 ▲0.0150.10 ▼7.28
Posts /wp-admin/edit.php3.36 ▲0.0051.05 ▼0.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.17 ▼12.96
Media Library /wp-admin/upload.php3.23 ▲0.0037.42 ▲0.90

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for All Posts Default Category
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼1.051.79 ▲0.0543.96 ▼0.86
Dashboard /wp-admin2,206 ▲185.86 ▼0.12113.60 ▲8.8243.20 ▲1.09
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0136.18 ▼3.5834.60 ▼3.68
Add New Post /wp-admin/post-new.php1,533 ▲1923.20 ▲5.65662.57 ▼56.4162.52 ▲6.58
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.13101.53 ▼12.4247.22 ▼0.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • category_children
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-posts-default-cat/all-posts-default-cat.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: category, posts, all, categories, post

all-posts-default-cat/all-posts-default-cat.php 92% from 13 tests

Analyzing the main PHP file in "All Posts Default Category" version 1.1
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 284 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG images were found in this plugin