84% demomentsomtres-resource-library

Code Review | DeMomentSomTres Resource Library

WordPress plugin DeMomentSomTres Resource Library scored84%from 54 tests.

About plugin

  • Plugin page: demomentsomtres-r...
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Mar 24, 2013
  • Latest release: May 20, 2014
  • Number of updates: 3
  • Update frequency: every 141.3 days
  • Top authors: marcqueralt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,167 total downloads

Benchmarks

Plugin footprint 83% from 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.03MB] [CPU: ▼10.90ms] Passed 4 tests

Server-side resources used by DeMomentSomTres Resource Library
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.08 ▼6.64
Dashboard /wp-admin3.35 ▲0.0044.42 ▼15.46
Posts /wp-admin/edit.php3.40 ▲0.0448.02 ▲4.15
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.83 ▼22.51
Media Library /wp-admin/upload.php3.27 ▲0.0434.12 ▲1.00
Resource Types /wp-admin/edit-tags.php?taxonomy=resource-type&post_type=resources3.2635.61
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=resources3.2637.07
Add New /wp-admin/post-new.php?post_type=resources3.4356.63
Resource Library /wp-admin/edit.php?post_type=resources3.3236.34

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
category_children
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for DeMomentSomTres Resource Library
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11713.18 ▼1.211.96 ▲0.0339.52 ▼2.84
Dashboard /wp-admin2,241 ▲504.88 ▼0.0798.21 ▼6.3437.62 ▼2.58
Posts /wp-admin/edit.php2,121 ▲322.00 ▼0.0639.87 ▼3.2634.38 ▼2.78
Add New Post /wp-admin/post-new.php1,563 ▲4922.88 ▲5.43668.70 ▲61.2153.99 ▼2.79
Media Library /wp-admin/upload.php1,423 ▲354.27 ▲0.1098.18 ▼0.4645.97 ▲0.13
Resource Types /wp-admin/edit-tags.php?taxonomy=resource-type&post_type=resources1,2692.1429.6030.31
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=resources1,4782.1426.7332.52
Add New /wp-admin/post-new.php?post_type=resources2,8997.84176.2873.00
Resource Library /wp-admin/edit.php?post_type=resources1,1771.9430.7529.00

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • category_children
    • db_upgraded

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
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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/demomentsomtres-resource-library/demomentsomtres-resources.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: documents, library, resources, resource library

demomentsomtres-resource-library/demomentsomtres-resources.php 92% from 13 tests

Analyzing the main PHP file in "DeMomentSomTres Resource Library" version 1.6.1
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("demomentsomtres-resource-library.php" instead of "demomentsomtres-resources.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected161 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File23466104
PHP14957

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected