84% plugtheme-list

Code Review | PlugTheme_List

WordPress plugin PlugTheme_List scored84%from 54 tests.

About plugin

  • Plugin page: plugtheme-list
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Apr 26, 2017
  • Latest release: Apr 26, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: abby3017 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /615 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.27ms] Passed 4 tests

This is a short check of server-side resources used by PlugTheme_List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1443.84 ▲7.47
Dashboard /wp-admin3.45 ▲0.1551.75 ▲0.09
Posts /wp-admin/edit.php3.56 ▲0.2148.64 ▼5.12
Add New Post /wp-admin/post-new.php6.03 ▲0.1594.81 ▼6.40
Media Library /wp-admin/upload.php3.37 ▲0.1535.72 ▼1.66
Theme /wp-admin/admin.php?page=plugtheme-list/PlugTheme_List.php/custom3.3734.18
Plugin /wp-admin/admin.php?page=plugtheme-list/PlugTheme_List.php3.3534.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by PlugTheme_List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.30 ▼1.511.66 ▼0.2443.99 ▼0.15
Dashboard /wp-admin2,230 ▲395.83 ▲0.8097.04 ▼7.9336.38 ▼9.37
Posts /wp-admin/edit.php2,113 ▲212.03 ▲0.0236.47 ▼11.5036.94 ▼1.02
Add New Post /wp-admin/post-new.php1,536 ▲2217.46 ▼0.18652.33 ▲31.0449.96 ▼22.89
Media Library /wp-admin/upload.php1,415 ▲244.23 ▼0.0195.58 ▼6.4144.07 ▼1.67
Theme /wp-admin/admin.php?page=plugtheme-list/PlugTheme_List.php/custom9142.0327.0722.54
Plugin /wp-admin/admin.php?page=plugtheme-list/PlugTheme_List.php9122.1727.4724.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/plugtheme-list/PlugTheme_List.php on line 37
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/plugtheme-list/PlugTheme_List.php on line 37
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/plugtheme-list/PlugTheme_List.php on line 37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === plugtheme-list === )
The official readme.txt is a good inspiration

plugtheme-list/PlugTheme_List.php 92% from 13 tests

"PlugTheme_List" 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: Name the main plugin file the same as the plugin slug ("plugtheme-list.php" instead of "PlugTheme_List.php")

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 plugin907 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2221608907

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity37.00
▷ Minimum class complexity2.00
▷ Maximum class complexity124.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods67
▷ Static methods11.49%
▷ Public methods4668.66%
▷ Protected methods2131.34%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin