84% show-archive-descriptions

Code Review | Show Archive Descriptions

WordPress plugin Show Archive Descriptions scored84%from 54 tests.

About plugin

  • Plugin page: show-archive-desc...
  • Plugin version: 0.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: Jan 20, 2015
  • Number of updates: 11
  • Update frequency: every 22.7 days
  • Top authors: jp2112 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.95ms] Passed 4 tests

A check of server-side resources used by Show Archive Descriptions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1138.65 ▼1.34
Dashboard /wp-admin3.41 ▲0.0745.70 ▼13.70
Posts /wp-admin/edit.php3.53 ▲0.1747.70 ▲1.18
Add New Post /wp-admin/post-new.php5.99 ▲0.1181.04 ▼17.93
Media Library /wp-admin/upload.php3.34 ▲0.1136.99 ▲2.05
Show Archive Descriptions /wp-admin/options-general.php?page=show-archive-descriptions3.3032.16

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
satd
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Show Archive Descriptions
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.28 ▲0.042.17 ▲0.5643.00 ▲1.79
Dashboard /wp-admin2,202 ▲225.57 ▼0.0995.53 ▲9.1043.13 ▲2.13
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0335.68 ▲0.0233.39 ▼4.52
Add New Post /wp-admin/post-new.php1,529 ▲123.71 ▲0.64697.56 ▲13.3059.17 ▼4.56
Media Library /wp-admin/upload.php1,407 ▲104.26 ▲0.0899.98 ▲1.0547.86 ▲2.73
Show Archive Descriptions /wp-admin/options-general.php?page=show-archive-descriptions9602.1627.3453.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/show-archive-descriptions/show-archive-descriptions.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: author, category, description, show, tag

show-archive-descriptions/show-archive-descriptions.php Passed 13 tests

The main PHP file in "Show Archive Descriptions" ver. 0.0.8 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Show category, tag and author descriptions on your archive pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin342 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32142333
CSS2019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/support.png5.03KB2.79KB▼ 44.54%
images/settings.png2.11KB2.31KB0.00%
images/description.png0.57KB0.35KB▼ 39.15%