84% archive-page

Code Review | Archive Page

WordPress plugin Archive Page scored84%from 54 tests.

About plugin

  • Plugin page: archive-page
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Mar 2, 2018
  • Number of updates: 10
  • Update frequency: every 89.3 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

900+ active /11,237 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Archive Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.46 ▲6.03
Dashboard /wp-admin3.31 ▼0.0349.14 ▼14.81
Posts /wp-admin/edit.php3.36 ▲0.0147.32 ▼2.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.81 ▼7.16
Media Library /wp-admin/upload.php3.23 ▲0.0034.70 ▲0.34
Archive Page /wp-admin/plugins.php?page=alobaidi_archive_page_shortocodes3.2031.53

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Archive Page
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.47 ▼0.121.78 ▼0.1546.35 ▲4.18
Dashboard /wp-admin2,210 ▲225.83 ▼0.05100.90 ▼11.0840.43 ▼1.28
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0639.38 ▲1.9935.40 ▲0.68
Add New Post /wp-admin/post-new.php1,545 ▲1218.16 ▼5.09683.06 ▼2.1163.18 ▲10.80
Media Library /wp-admin/upload.php1,392 ▲74.16 ▲0.0496.23 ▼3.8646.13 ▼0.37
Archive Page /wp-admin/plugins.php?page=alobaidi_archive_page_shortocodes8352.0227.4931.14

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/archive-page/archive-page.php
    • > /wp-content/plugins/archive-page/shortcodes-page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 26 tag instead of maximum 10
You can look at the official readme.txt

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

The main file in "Archive Page" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
Make archive page easily with full customize and in all languages of the world.

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

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions15
▷ Named functions15100.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
No PNG images were found in this plugin