63% resource-management

Code Review | Resource Management for Wordpress

WordPress plugin Resource Management for Wordpress scored63%from 54 tests.

About plugin

  • Plugin page: resource-management
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Aug 29, 2017
  • Latest release: Aug 29, 2017
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: soumenroy111 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /723 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.92MB] [CPU: ▼35.73ms] Passed 4 tests

Analyzing server-side resources used by Resource Management for Wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0544.41 ▲2.99
Dashboard /wp-admin3.04 ▼0.3126.63 ▼36.68
Posts /wp-admin/edit.php3.04 ▼0.3223.73 ▼26.33
Add New Post /wp-admin/post-new.php3.04 ▼2.8525.74 ▼68.25
Media Library /wp-admin/upload.php3.04 ▼0.2023.56 ▼11.65
Categories /wp-admin/admin.php?page=res-category3.0423.30
Add New /wp-admin/admin.php?page=res-form3.0424.71
Resources /wp-admin/admin.php?page=resource-management3.0424.06

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: 2 new tables, 6 new options
New tables
wp_res_category
wp_res_library
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Resource Management for Wordpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲18413.96 ▼0.639.36 ▲7.5243.00 ▼3.03
Dashboard /wp-admin2,230 ▲504.86 ▼0.7284.01 ▼9.7140.12 ▼0.02
Posts /wp-admin/edit.php2,141 ▲382.48 ▲0.4936.37 ▲2.1133.22 ▼4.55
Add New Post /wp-admin/post-new.php1,560 ▲2323.09 ▲4.92672.08 ▲48.8359.18 ▼8.42
Media Library /wp-admin/upload.php1,441 ▲414.54 ▲0.33104.16 ▼1.9842.71 ▼3.02
Categories /wp-admin/admin.php?page=res-category9041.8729.0229.06
Add New /wp-admin/admin.php?page=res-form1,7377.01132.8762.25
Resources /wp-admin/admin.php?page=resource-management9912.3042.1031.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie tables were found after uninstall: 2 tables
    • wp_res_library
    • wp_res_category
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 13 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=resource-management
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Invalid url: "soumenroy111@gmail.com"
The official readme.txt is a good inspiration

resource-management/resource_management.php 85% from 13 tests

"Resource Management for Wordpress" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("resource-management.php" instead of "resource_management.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,123 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2115711,760
PHP617685921
CSS31015442

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sort_desc.png0.15KB0.25KB0.00%
images/sort_desc_disabled.png0.14KB0.25KB0.00%
images/download.png1.20KB0.29KB▼ 75.81%
images/sort_both.png0.20KB0.29KB0.00%
images/sort_asc_disabled.png0.14KB0.25KB0.00%