84% archived-post-status

Code Review | Archived Post Status

WordPress plugin Archived Post Status scored84%from 54 tests.

About plugin

  • Plugin page: archived-post-status
  • Plugin version: 0.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Dec 23, 2016
  • Number of updates: 33
  • Update frequency: every 21.8 days
  • Top authors: fjarrett (90.91%)deployer (12.12%)

Code review

54 tests

User reviews

34 reviews

Install metrics

7,000+ active /51,841 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.04MB] [CPU: ▼7.66ms] Passed 4 tests

This is a short check of server-side resources used by Archived Post Status
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.58 ▼7.43
Dashboard /wp-admin3.34 ▲0.0449.06 ▼1.08
Posts /wp-admin/edit.php3.39 ▲0.0443.56 ▼9.90
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.98 ▼12.23
Media Library /wp-admin/upload.php3.26 ▲0.0433.93 ▲2.75

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Archived Post Status
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.431.66 ▼0.2242.07 ▼2.79
Dashboard /wp-admin2,209 ▲214.85 ▼1.06101.81 ▼3.9141.02 ▼3.72
Posts /wp-admin/edit.php2,104 ▲152.04 ▲0.0536.97 ▼1.7133.22 ▼4.54
Add New Post /wp-admin/post-new.php1,542 ▲2818.03 ▲0.39623.58 ▼14.3958.95 ▲5.93
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0397.40 ▼6.7442.16 ▼0.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/archived-post-status/archived-post-status.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: posts, workflow, pages, admin, status

archived-post-status/archived-post-status.php Passed 13 tests

The main file in "Archived Post Status" v. 0.3.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
Allows posts and pages to be archived so you can unpublish content without having to trash it.

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
Good job! No executable or dangerous file extensions detected486 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File84370293
PHP191123193

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin