84% elvez-manage-contents

Code Review | Elvez Manage Contents

WordPress plugin Elvez Manage Contents scored84%from 54 tests.

About plugin

  • Plugin page: elvez-manage-cont...
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 20, 2020
  • Latest release: Dec 6, 2021
  • Number of updates: 15
  • Update frequency: every 25.4 days
  • Top authors: elvezcojp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼0.61ms] Passed 4 tests

Analyzing server-side resources used by Elvez Manage Contents
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2241.86 ▲1.32
Dashboard /wp-admin3.59 ▲0.2851.21 ▼0.99
Posts /wp-admin/edit.php3.64 ▲0.2852.84 ▲2.31
Add New Post /wp-admin/post-new.php6.12 ▲0.2496.05 ▼5.06
Media Library /wp-admin/upload.php3.45 ▲0.2244.49 ▲9.28
Manage Contents Admin /wp-admin/admin.php?page=elvez-manage-contents3.4734.45

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 8 new options
New WordPress options
elvez_manage_contents_subscription_id
elvez_manage_contents_subscribe_email
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Elvez Manage Contents
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,959 ▲21314.02 ▼0.418.09 ▲6.2140.19 ▼3.25
Dashboard /wp-admin2,242 ▲515.28 ▼0.60107.48 ▼5.0640.50 ▼0.02
Posts /wp-admin/edit.php2,131 ▲432.48 ▲0.3741.78 ▲0.4439.35 ▲2.38
Add New Post /wp-admin/post-new.php1,541 ▲2217.72 ▼5.53635.77 ▼19.0466.00 ▲10.28
Media Library /wp-admin/upload.php1,430 ▲394.52 ▲0.32104.78 ▲1.9048.36 ▲4.46
Manage Contents Admin /wp-admin/admin.php?page=elvez-manage-contents1,1012.5442.0232.13

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: 8 options
    • theysaidso_admin_options
    • widget_recent-comments
    • elvez_manage_contents_subscribe_email
    • widget_theysaidso_widget
    • elvez_manage_contents_subscription_id
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/elvez-manage-contents/public/partials/elvez-manage-contents-public-display.php
    • > /wp-content/plugins/elvez-manage-contents/admin/partials/elvez-manage-contents-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: contents, shortcode, login, block, logout

elvez-manage-contents/elvez-manage-contents.php 85% from 13 tests

Analyzing the main PHP file in "Elvez Manage Contents" version 1.1.6
The following require your attention:
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.2")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.2")

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
No dangerous file extensions were detected3,106 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP233731,7801,967
JavaScript638140609
CSS23845300
PO File6141230230

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.88
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods152
▷ Static methods6442.11%
▷ Public methods14796.71%
▷ Protected methods00.00%
▷ Private methods53.29%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants54
▷ Global constants11.85%
▷ Class constants5398.15%
▷ Public constants53100.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 images were found in this plugin