94% surbma-divi-remove-project-cpt

Code Review | Surbma | Divi Remove Project CPT

WordPress plugin Surbma | Divi Remove Project CPT scored 94% from 54 tests.

About plugin

  • Plugin page: surbma-divi-remov...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8
  • WordPress version: 5.8.1
  • First release: May 21, 2015
  • Latest release: Nov 8, 2021
  • Number of updates: 11
  • Update frequency: every 214.8 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active / 4,211 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼139.78ms] Passed 4 tests

This is a short check of server-side resources used by Surbma | Divi Remove Project CPT
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.80 ▲12.27
Dashboard /wp-admin3.07 ▲0.0145.32 ▲1.21
Posts /wp-admin/edit.php3.12 ▲0.0140.53 ▼4.30
Add New Post /wp-admin/post-new.php5.43 ▼0.0194.20 ▼555.10
Media Library /wp-admin/upload.php3.01 ▲0.0031.38 ▼0.93

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Surbma | Divi Remove Project CPT
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.15 ▲0.478.95 ▼2.7447.15 ▼2.35
Dashboard /wp-admin2,973 ▲455.90 ▼0.15133.93 ▼17.81111.41 ▼3.42
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0062.53 ▼6.3888.27 ▼12.62
Add New Post /wp-admin/post-new.php1,498 ▼17418.81 ▲0.07369.20 ▲7.44110.85 ▼4.70
Media Library /wp-admin/upload.php1,810 ▲35.06 ▲0.03146.65 ▼2.88115.93 ▼13.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 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 50% from 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 following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/surbma-divi-remove-project-cpt/surbma-divi-remove-project-cpt.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
6 plugin tags: elegant themes, project, divi theme, divi, elegantthemes...

surbma-divi-remove-project-cpt/surbma-divi-remove-project-cpt.php 92% from 13 tests

Analyzing the main PHP file in "Surbma | Divi Remove Project CPT" version 2.0
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected20 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181317
Markdown1103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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
PNG images were not found in this plugin