90% va-simple-expires

Code Review | VA Simple Expires

WordPress plugin VA Simple Expires scored90%from 54 tests.

About plugin

  • Plugin page: va-simple-expires
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.2-4.5.3
  • WordPress version: 6.3.1
  • First release: Apr 21, 2014
  • Latest release: Dec 18, 2016
  • Number of updates: 16
  • Update frequency: every 60.8 days
  • Top authors: kuck1u (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /7,009 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.80ms] Passed 4 tests

Analyzing server-side resources used by VA Simple Expires
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.28 ▲1.84
Dashboard /wp-admin3.36 ▲0.0649.27 ▼3.44
Posts /wp-admin/edit.php3.41 ▲0.0651.42 ▼2.06
Add New Post /wp-admin/post-new.php5.95 ▲0.06105.95 ▼1.90
Media Library /wp-admin/upload.php3.29 ▲0.0635.96 ▼3.78

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for VA Simple Expires
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲3113.19 ▼1.371.83 ▼0.3746.46 ▲4.45
Dashboard /wp-admin2,226 ▲265.91 ▲1.04102.88 ▲0.8240.49 ▼6.77
Posts /wp-admin/edit.php2,105 ▲52.02 ▲0.0235.82 ▼7.4032.59 ▼3.54
Add New Post /wp-admin/post-new.php6,977 ▲5,44626.14 ▲3.15833.45 ▲158.1154.58 ▲1.67
Media Library /wp-admin/upload.php1,402 ▲54.21 ▲0.0999.03 ▼12.6139.56 ▼8.12

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
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
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: scheduling, expires, schedule, expiring, expire...

va-simple-expires/va-simple-expires.php Passed 13 tests

The entry point to "VA Simple Expires" version 1.0.6 is a PHP file that has certain tags in its header comment area
56 characters long description:
This is the fork of Simple Expires created by Mr. abmcr.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin245 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13562204
PO File17834
CSS1007

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods872.73%
▷ Protected methods218.18%
▷ Private methods19.09%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected