84% clean-my-archives

Code Review | Clean My Archives

WordPress plugin Clean My Archives scored84%from 54 tests.

About plugin

  • Plugin page: clean-my-archives
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.8.2
  • WordPress version: 6.3.1
  • First release: Sep 21, 2010
  • Latest release: Sep 30, 2017
  • Number of updates: 11
  • Update frequency: every 233.3 days
  • Top authors: greenshady (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /26,471 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.15ms] Passed 4 tests

Analyzing server-side resources used by Clean My Archives
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.04 ▼1.21
Dashboard /wp-admin3.33 ▲0.0247.12 ▼7.76
Posts /wp-admin/edit.php3.38 ▲0.0244.20 ▼3.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.21 ▼0.52
Media Library /wp-admin/upload.php3.25 ▲0.0235.61 ▲0.09

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Clean My Archives
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.051.81 ▲0.0244.94 ▲0.26
Dashboard /wp-admin2,206 ▲184.89 ▼0.97101.07 ▼16.0942.46 ▼3.05
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0535.55 ▼1.2735.56 ▲0.87
Add New Post /wp-admin/post-new.php1,533 ▲1423.24 ▲0.03608.43 ▼150.9250.36 ▼5.68
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.0594.48 ▼12.5541.15 ▼7.48

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 does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clean-my-archives/clean-my-archives.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Screenshot of the plugin in action my archives page.) image missing
You can look at the official readme.txt

clean-my-archives/clean-my-archives.php Passed 13 tests

This is the main PHP file of "Clean My Archives" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
A plugin that displays a full archive of posts by month and year with the [clean-my-archives] shortcode.

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
There were no executable files found in this plugin462 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
Markdown41270369
PHP1439793

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions4
▷ Named functions4100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png38.45KB16.08KB▼ 58.17%