90% archive

Code Review | Archive

WordPress plugin Archive scored90%from 54 tests.

About plugin

  • Plugin page: archive
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2011
  • Latest release: May 4, 2020
  • Number of updates: 34
  • Update frequency: every 96.2 days
  • Top authors: Bueltge (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /14,656 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.11MB] [CPU: ▼12.38ms] Passed 4 tests

Analyzing server-side resources used by Archive
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.45 ▲0.49
Dashboard /wp-admin3.25 ▼0.0532.86 ▼17.67
Posts /wp-admin/edit.php3.31 ▼0.0437.79 ▼8.79
Add New Post /wp-admin/post-new.php5.51 ▼0.3873.51 ▼22.68
Media Library /wp-admin/upload.php3.26 ▲0.0334.90 ▼0.36

Server storage [IO: ▲0.08MB] [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-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Archive
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲6113.30 ▼1.331.81 ▲0.0041.39 ▼9.73
Dashboard /wp-admin2,218 ▲305.80 ▼0.02100.09 ▼5.6737.84 ▼3.50
Posts /wp-admin/edit.php2,108 ▲192.01 ▲0.0039.25 ▲0.0036.40 ▲1.83
Add New Post /wp-admin/post-new.php1,550 ▲1718.00 ▼5.08645.71 ▼17.5454.89 ▲0.08
Media Library /wp-admin/upload.php1,403 ▲184.24 ▲0.0499.37 ▲3.4143.09 ▲0.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: custom post type, post, archive

archive/archive.php 92% from 13 tests

This is the main PHP file of "Archive" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin668 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1190466664
JavaScript2004

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.33
Average class complexity86.00
▷ Minimum class complexity86.00
▷ Maximum class complexity86.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods34
▷ Static methods617.65%
▷ Public methods34100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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/server_h.png2.65KB1.41KB▼ 46.76%
images/server.png2.36KB1.36KB▼ 42.46%
images/server_m.png2.81KB1.38KB▼ 50.94%