68% jpress-archive

Code Review | jPress Archive

WordPress plugin jPress Archive scored68%from 54 tests.

About plugin

  • Plugin page: jpress-archive
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: May 15, 2015
  • Latest release: Jun 20, 2016
  • Number of updates: 9
  • Update frequency: every 44.8 days
  • Top authors: joharyjoox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,044 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼1.58MB] [CPU: ▼45.52ms] Passed 4 tests

A check of server-side resources used by jPress Archive
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.41 ▼1.0511.38 ▼27.23
Dashboard /wp-admin2.43 ▼0.8811.86 ▼35.49
Posts /wp-admin/edit.php2.43 ▼0.9311.51 ▼36.07
Add New Post /wp-admin/post-new.php2.43 ▼3.4611.35 ▼83.29
Media Library /wp-admin/upload.php2.43 ▼0.8012.91 ▼17.65
Archives /wp-admin/edit.php?post_type=page&post_status=archived2.4311.97
Archives /wp-admin/edit.php?post_type=post&post_status=archived2.4312.97

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_jpress-archive
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for jPress Archive
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.35 ▼1.271.67 ▼0.4442.66 ▼1.93
Dashboard /wp-admin2,232 ▲445.84 ▲0.96101.70 ▼11.2177.11 ▲30.55
Posts /wp-admin/edit.php2,147 ▲582.04 ▲0.0240.36 ▲2.8234.98 ▲0.01
Add New Post /wp-admin/post-new.php1,548 ▲3418.22 ▲0.62676.13 ▲63.1362.00 ▲6.07
Media Library /wp-admin/upload.php1,411 ▲204.18 ▼0.0293.74 ▼2.5566.96 ▲25.44
Archives /wp-admin/edit.php?post_type=page&post_status=archived1,2171.9834.7927.80
Archives /wp-admin/edit.php?post_type=post&post_status=archived1,2981.9634.1535.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in Jpress_Widget_Archives is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_jpress-archive
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=post&post_status=archived
    • > POST request to /wp-admin/admin-ajax.php
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in Jpress_Widget_Archives is deprecated since version 4.3.0! Use __construct() instead.

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
Please fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/jpress-archive/widget/class-jpress-widget-archives.php
    • > /wp-content/plugins/jpress-archive/jpress-archive.php
    • > /wp-content/plugins/jpress-archive/admin/class-jpress-archive-settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: purge, archive, post, custom post type

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

This is the main PHP file of "jPress Archive" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
Manual archive features for all your post types using post status features.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected659 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP37290490
PO File25561169

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.50
▷ Minimum class complexity4.00
▷ Maximum class complexity13.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
archive-white.png3.20KB0.55KB▼ 82.73%
archive-grey.png3.28KB0.61KB▼ 81.43%