78% spice-archive-page

Code Review | Spice Archive Page

WordPress plugin Spice Archive Page scored 78% from 54 tests.

About plugin

  • Plugin page: spice-archive-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 13, 2018
  • Latest release: Oct 10, 2018
  • Number of updates: 6
  • Update frequency: every 4.7 days
  • Top authors: a.ankit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,410 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Spice Archive Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.78 ▲0.40
Dashboard /wp-admin3.33 ▲0.0247.54 ▼4.59
Posts /wp-admin/edit.php3.38 ▲0.0251.67 ▲2.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0298.46 ▼3.31
Media Library /wp-admin/upload.php3.25 ▲0.0235.06 ▲0.33
Spice archive Page /wp-admin/options-general.php?page=spice_archive_page3.2131.58

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Spice Archive Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.63 ▼0.751.75 ▲0.1042.81 ▼4.77
Dashboard /wp-admin2,207 ▲194.86 ▼0.2597.79 ▼1.8738.25 ▼4.04
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0240.27 ▲4.4135.54 ▲2.19
Add New Post /wp-admin/post-new.php1,517 ▼2317.77 ▼5.43607.36 ▼41.0547.33 ▼5.35
Media Library /wp-admin/upload.php1,389 ▲14.19 ▼0.0399.18 ▼0.1343.91 ▲3.30
Spice archive Page /wp-admin/options-general.php?page=spice_archive_page8652.0323.7823.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/spice-archive-page/shortcodes-and-info.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/spice-archive-page/spice-archive-page.php:31

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Requires at least: Version not formatted correctly
  • Tags: There are too many tags (16 tag instead of maximum 10)
You can look at the official readme.txt

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

The primary PHP file in "Spice Archive Page" version 1.0 is used by WordPress to initiate all plugin functionality
99 characters long description:
This is spice archive page plugin. Display your post in your page, post and shortcode enabled area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected95 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2373095

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin