10% cpk-ultimate-archives

Code Review | CPK Ultimate Archives

WordPress plugin CPK Ultimate Archives scored10%from 54 tests.

About plugin

  • Plugin page: cpk-ultimate-arch...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2013
  • Latest release: Mar 9, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: cpkwebsolutions (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,790 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/cpk-ultimate-archives/cpkUltimateArchives.php+344
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.62ms] Passed 4 tests

A check of server-side resources used by CPK Ultimate Archives
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.86 ▲0.09
Dashboard /wp-admin3.32 ▲0.0148.28 ▼5.35
Posts /wp-admin/edit.php3.37 ▲0.0150.38 ▼1.06
Add New Post /wp-admin/post-new.php5.90 ▲0.01101.01 ▲1.13
Media Library /wp-admin/upload.php3.24 ▲0.0136.88 ▼0.16

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_cpkultimatearchives
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
CPK_instance_options
CPK_instance_keys

Browser metrics Passed 4 tests

Checking browser requirements for CPK Ultimate Archives
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.282.42 ▲0.5345.37 ▲3.80
Dashboard /wp-admin2,192 ▲185.65 ▼0.0688.12 ▼1.2441.40 ▼4.98
Posts /wp-admin/edit.php2,097 ▼32.04 ▲0.0234.18 ▼6.1240.43 ▲1.31
Add New Post /wp-admin/post-new.php1,531 ▲523.29 ▲5.71750.19 ▲117.7257.66 ▲3.86
Media Library /wp-admin/upload.php1,397 ▼34.14 ▼0.07111.48 ▲13.9846.11 ▲5.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • CPK_instance_keys
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • CPK_instance_options
    • widget_cpkultimatearchives
    • 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cpk-ultimate-archives/cpkUltimateArchives.php:27

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 96% from 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
10 plugin tags: query, daily, archive, sidebar, weekly...

cpk-ultimate-archives/cpkUltimateArchives.php 92% from 13 tests

"CPK Ultimate Archives" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cpk-ultimate-archives.php" instead of "cpkUltimateArchives.php")

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
There were no executable files found in this plugin330 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13930330

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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