90% custom-archives

Code Review | Custom Archives

WordPress plugin Custom Archives scored90%from 54 tests.

About plugin

  • Plugin page: custom-archives
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: May 26, 2018
  • Latest release: Apr 1, 2019
  • Number of updates: 16
  • Update frequency: every 19.4 days
  • Top authors: danieltj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,795 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.85ms] Passed 4 tests

Server-side resources used by Custom Archives
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.0746.13 ▲0.18
Dashboard /wp-admin3.63 ▲0.0751.15 ▼1.39
Posts /wp-admin/edit.php3.74 ▲0.0651.61 ▼2.63
Add New Post /wp-admin/post-new.php6.21 ▲0.0691.76 ▼17.93
Media Library /wp-admin/upload.php3.55 ▲0.0639.63 ▼1.45
Archives /wp-admin/options-general.php?page=custom-archives3.5233.85

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Custom Archives: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.70 ▲0.162.25 ▲0.4442.80 ▼0.16
Dashboard /wp-admin2,196 ▲255.66 ▲0.0091.10 ▼0.6744.22 ▲2.32
Posts /wp-admin/edit.php2,101 ▲12.03 ▲0.0340.16 ▲3.0136.87 ▲0.23
Add New Post /wp-admin/post-new.php1,558 ▲918.61 ▼4.48625.83 ▼60.1351.28 ▼3.35
Media Library /wp-admin/upload.php1,404 ▲74.19 ▼0.04107.13 ▲2.5741.64 ▼3.65
Archives /wp-admin/options-general.php?page=custom-archives7682.0224.4526.46

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output 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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: post type, archive, page, template, custom

custom-archives/custom-archives.php Passed 13 tests

This is the main PHP file of "Custom Archives" version 3.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Select a page to be a custom archive for your post types.

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
Success! There were no dangerous files found in this plugin423 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1202281280
Markdown2890143

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1894.74%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected