89% wpjm-analytics

Code Review | WPJM Analytics

WordPress plugin WPJM Analytics scored89%from 54 tests.

About plugin

  • Plugin page: wpjm-analytics
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 6, 2019
  • Latest release: Nov 6, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: gma992 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /921 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by WPJM Analytics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.63 ▲0.10
Dashboard /wp-admin3.33 ▼0.0145.07 ▼19.40
Posts /wp-admin/edit.php3.38 ▲0.0351.30 ▲1.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0596.04 ▼5.19
Media Library /wp-admin/upload.php3.25 ▲0.0333.46 ▼2.22

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WPJM Analytics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.39 ▼0.191.74 ▲0.0544.51 ▲5.47
Dashboard /wp-admin2,199 ▲225.58 ▼0.0982.37 ▼6.0840.38 ▼0.42
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0240.13 ▲4.9735.24 ▼2.03
Add New Post /wp-admin/post-new.php1,532 ▲623.28 ▲0.20660.81 ▼23.4261.57 ▲6.15
Media Library /wp-admin/upload.php1,407 ▲134.17 ▼0.0196.16 ▼12.5542.54 ▼5.19

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #1, #2 in wpjm-analytics/assets to your readme.txt
  • Tags: You are using too many tags: 26 tag instead of maximum 10
You can look at the official readme.txt

wpjm-analytics/wpjm-analytics.php Passed 13 tests

The main PHP script in "WPJM Analytics" version 1.0.0 is automatically included on every request by WordPress
80 characters long description:
Track, report, and export Job Listings and Applications data for WP Job Manager.

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
No dangerous file extensions were detected193 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP17149188
JavaScript1214
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions8
▷ Named functions8100.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
PNG images were not found in this plugin