94% remove-projects-in-divi

Code Review | Remove Projects in Divi

WordPress plugin Remove Projects in Divi scored 94% from 54 tests.

About plugin

  • Plugin page: remove-projects-i...
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.5
  • WordPress version: 5.8.1
  • First release: Nov 15, 2015
  • Latest release: May 23, 2018
  • Number of updates: 32
  • Update frequency: every 30.9 days
  • Top authors: s3rgiosan (93.75%)vint3 (9.38%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,634 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼149.55ms] Passed 4 tests

Analyzing server-side resources used by Remove Projects in Divi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.0937.62 ▼1.04
Dashboard /wp-admin3.15 ▲0.1055.16 ▼2.75
Posts /wp-admin/edit.php3.26 ▲0.1549.25 ▼9.88
Add New Post /wp-admin/post-new.php5.51 ▲0.0898.46 ▼583.47
Media Library /wp-admin/upload.php3.10 ▲0.1036.40 ▼2.10

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

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

Browser metrics Passed 4 tests

Remove Projects in Divi: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲6616.11 ▲0.2611.04 ▲0.6554.93 ▲3.28
Dashboard /wp-admin2,970 ▲335.90 ▼0.06146.84 ▼23.10116.31 ▼4.93
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0081.60 ▲4.6695.11 ▼1.26
Add New Post /wp-admin/post-new.php1,683 ▼016.21 ▲0.48411.41 ▼30.30119.13 ▲3.98
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.03161.27 ▼7.19124.28 ▼2.70

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 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 89× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/remove-projects-in-divi/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/remove-projects-in-divi/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/remove-projects-in-divi/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/remove-projects-in-divi/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/remove-projects-in-divi/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/remove-projects-in-divi/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/remove-projects-in-divi/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/remove-projects-in-divi/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/remove-projects-in-divi/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/remove-projects-in-divi/vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: project, projects, divi, elegantthemes, elegant themes

remove-projects-in-divi/remove-projects-in-divi.php Passed 13 tests

The primary PHP file in "Remove Projects in Divi" version 1.3.8 is used by WordPress to initiate all plugin functionality
55 characters long description:
Removes the Project custom post type in the Divi theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,209 lines of code in 120 files:
LanguageFilesBlank linesComment linesLines of code
PHP1044497272,472
JSON6001,540
JavaScript747140
XML211235
Markdown111022

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity2.75
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes97
▷ Abstract classes11.03%
▷ Concrete classes9698.97%
▷ Final classes00.00%
Methods124
▷ Static methods43.23%
▷ Public methods8366.94%
▷ Protected methods3024.19%
▷ Private methods118.87%
Functions9
▷ Named functions222.22%
▷ Anonymous functions777.78%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected