90% archive-title

Code Review | Archive Title

WordPress plugin Archive Title scored90%from 54 tests.

About plugin

  • Plugin page: archive-title
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: May 30, 2018
  • Latest release: May 24, 2023
  • Number of updates: 14
  • Update frequency: every 130.0 days
  • Top authors: webmandesign (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /12,361 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.09ms] Passed 4 tests

An overview of server-side resources used by Archive Title
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.22 ▼1.42
Dashboard /wp-admin3.36 ▲0.0543.64 ▲1.10
Posts /wp-admin/edit.php3.47 ▲0.1142.41 ▼7.35
Add New Post /wp-admin/post-new.php5.94 ▲0.0578.72 ▼12.68
Media Library /wp-admin/upload.php3.28 ▲0.0534.25 ▲3.31

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Archive Title
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.271.66 ▲0.0337.78 ▲0.65
Dashboard /wp-admin2,198 ▲185.57 ▼0.1082.12 ▼4.1439.30 ▲3.33
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0634.42 ▼8.5933.18 ▼6.80
Add New Post /wp-admin/post-new.php1,526 ▼1123.07 ▲4.81650.79 ▲39.4253.47 ▼23.64
Media Library /wp-admin/upload.php1,400 ▼04.27 ▲0.0899.65 ▲2.2248.02 ▲5.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • 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 Passed 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)
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

archive-title/archive-title.php Passed 13 tests

This is the main PHP file of "Archive Title" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
Provides options to control an archive page title.

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 detected347 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7291322324
Markdown314023

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.50
▷ Minimum class complexity8.00
▷ Maximum class complexity11.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods1688.89%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin