94% disable-genesis-schema

Code Review | Disable Genesis Schema

WordPress plugin Disable Genesis Schema scored 94% from 54 tests.

About plugin

  • Plugin page: disable-genesis-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.1
  • WordPress version: 5.8.1
  • First release: Apr 18, 2019
  • Latest release: Apr 18, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: billerickson (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 5,110 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼144.60ms] Passed 4 tests

An overview of server-side resources used by Disable Genesis Schema
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0631.21 ▼1.86
Dashboard /wp-admin3.12 ▲0.0640.10 ▼13.92
Posts /wp-admin/edit.php3.17 ▲0.0641.14 ▼5.61
Add New Post /wp-admin/post-new.php5.48 ▲0.0591.17 ▼551.21
Media Library /wp-admin/upload.php3.06 ▲0.0536.23 ▼7.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Genesis Schema
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.22 ▲0.328.93 ▼1.9451.72 ▲6.94
Dashboard /wp-admin2,973 ▲425.86 ▼0.13140.94 ▼12.11112.23 ▲0.64
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0162.93 ▼11.1990.25 ▲5.27
Add New Post /wp-admin/post-new.php1,683 ▼018.57 ▲0.48387.97 ▼22.65105.85 ▼8.59
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.00140.65 ▼20.92120.57 ▼0.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-genesis-schema/disable-genesis-schema.php:24

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: schema, structured data, genesiswp, yoast, seo

disable-genesis-schema/disable-genesis-schema.php Passed 13 tests

The entry point to "Disable Genesis Schema" version 1.0 is a PHP file that has certain tags in its header comment area
111 characters long description:
If you're using Yoast SEO or another plugin to output schema, use this to disable duplicate schema from Genesis

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
Good job! No executable or dangerous file extensions detected53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP153053

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin