89% wpjm-schema

Code Review | WPJM Schema

WordPress plugin WPJM Schema scored89%from 54 tests.

About plugin

  • Plugin page: wpjm-schema
  • Plugin version: 0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2017
  • Latest release: Oct 16, 2017
  • Number of updates: 27
  • Update frequency: every 4.3 days
  • Top authors: stevenkellow (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /2,076 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.20ms] Passed 4 tests

Analyzing server-side resources used by WPJM Schema
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.09 ▲2.31
Dashboard /wp-admin3.31 ▲0.0145.07 ▼0.18
Posts /wp-admin/edit.php3.36 ▲0.0146.73 ▼2.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.94 ▼7.82
Media Library /wp-admin/upload.php3.24 ▲0.0134.51 ▲1.34

Server storage [IO: ▲0.03MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

WPJM Schema: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.20 ▼1.164.41 ▲2.7138.08 ▼3.53
Dashboard /wp-admin2,220 ▲295.81 ▼0.07102.70 ▲0.0839.58 ▼5.34
Posts /wp-admin/edit.php2,103 ▲142.02 ▼0.0041.29 ▲1.4639.52 ▲2.39
Add New Post /wp-admin/post-new.php1,529 ▲1523.32 ▲5.86696.34 ▼1.0653.14 ▼7.95
Media Library /wp-admin/upload.php1,399 ▲114.23 ▼0.0397.22 ▼2.8442.73 ▼2.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: jobs, schema, wpjm, seo, wpjobmanager

wpjm-schema/index.php 85% from 13 tests

The main file in "WPJM Schema" v. 0.5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpjm-schema.php" instead of "index.php")
  • Domain Path: The domain path folder does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin427 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7201275323
Markdown1300104

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions10
▷ Named functions10100.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
No PNG files were detected