84% autoclaimer

Code Review | AutoClaimer

WordPress plugin AutoClaimer scored84%from 54 tests.

About plugin

  • Plugin page: autoclaimer
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 23, 2016
  • Latest release: Mar 7, 2017
  • Number of updates: 12
  • Update frequency: every 6.8 days
  • Top authors: thinkatat (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,081 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
Installer ran successfully

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

Analyzing server-side resources used by AutoClaimer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.46 ▼0.54
Dashboard /wp-admin3.33 ▼0.0145.87 ▼17.00
Posts /wp-admin/edit.php3.38 ▲0.0348.92 ▲1.90
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.59 ▼5.00
Media Library /wp-admin/upload.php3.25 ▲0.0239.77 ▲5.66

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for AutoClaimer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.221.72 ▼0.0244.97 ▲4.65
Dashboard /wp-admin2,206 ▲185.80 ▲0.7999.67 ▼5.5341.54 ▼2.89
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0439.21 ▲1.8634.36 ▲0.09
Add New Post /wp-admin/post-new.php1,533 ▲1223.45 ▲0.22599.63 ▼69.3555.60 ▲0.22
Media Library /wp-admin/upload.php1,388 ▲64.19 ▲0.0694.07 ▼10.5543.12 ▲1.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/autoclaimer/autoclaimer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: package, listing, automatically, claim, paid...

autoclaimer/autoclaimer.php Passed 13 tests

"AutoClaimer" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
132 characters long description:
An add-on for WP Job Manager WooCommerce Paid Listings which automatically claims listings once purchased through specified package.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1231579

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin