84% demomentsomtres-vc-cpw

Code Review | DeMomentSomTres compatible VC & CPW

WordPress plugin DeMomentSomTres compatible VC & CPW scored84%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-v...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4
  • WordPress version: 6.3.1
  • First release: Nov 5, 2014
  • Latest release: Dec 23, 2015
  • Number of updates: 6
  • Update frequency: every 69.0 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /5,961 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.00MB] [CPU: ▼4.90ms] Passed 4 tests

Server-side resources used by DeMomentSomTres compatible VC & CPW
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.28 ▲2.97
Dashboard /wp-admin3.31 ▲0.0146.92 ▼2.47
Posts /wp-admin/edit.php3.36 ▲0.0049.66 ▼5.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.90 ▼13.92
Media Library /wp-admin/upload.php3.24 ▲0.0037.22 ▲2.14

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, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for DeMomentSomTres compatible VC & CPW
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.341.78 ▲0.0557.34 ▲15.60
Dashboard /wp-admin2,195 ▲245.57 ▼0.0391.00 ▼5.4443.70 ▲4.47
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0340.34 ▼14.2535.41 ▼6.61
Add New Post /wp-admin/post-new.php1,529 ▲323.11 ▲0.03665.98 ▼36.6957.25 ▼0.34
Media Library /wp-admin/upload.php1,403 ▲34.16 ▲0.0498.68 ▼10.5346.83 ▲0.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/demomentsomtres-vc-cpw/demoemntsomtres-vc-cpw.php:32

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: visual composer, js_composer, custom post widget, wpbakery

demomentsomtres-vc-cpw/demoemntsomtres-vc-cpw.php 92% from 13 tests

The main PHP script in "DeMomentSomTres compatible VC & CPW" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("demomentsomtres-vc-cpw.php" instead of "demoemntsomtres-vc-cpw.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14226

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
No PNG files were detected