78% javibola-custom-theme

Code Review | JaviBola Custom Theme Test

WordPress plugin JaviBola Custom Theme Test scored78%from 54 tests.

About plugin

  • Plugin page: javibola-custom-t...
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.6
  • WordPress version: 6.3.1
  • First release: Apr 7, 2015
  • Latest release: Jul 2, 2018
  • Number of updates: 45
  • Update frequency: every 26.3 days
  • Top authors: JaviBola (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,908 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.09ms] Passed 4 tests

Analyzing server-side resources used by JaviBola Custom Theme Test
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.75 ▼0.97
Dashboard /wp-admin3.33 ▲0.0344.19 ▼1.58
Posts /wp-admin/edit.php3.38 ▲0.0347.60 ▼3.01
Add New Post /wp-admin/post-new.php5.91 ▲0.03100.12 ▲14.65
Media Library /wp-admin/upload.php3.25 ▲0.0335.38 ▲1.22
JaviBola Custom Theme Test /wp-admin/options-general.php?page=jbct3.2130.97

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
jbct_theme
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for JaviBola Custom Theme Test
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.61 ▼0.692.19 ▲0.0042.02 ▼0.96
Dashboard /wp-admin2,215 ▲244.87 ▼0.99108.41 ▲4.1442.88 ▲0.24
Posts /wp-admin/edit.php2,095 ▲32.02 ▼0.0440.49 ▼2.2536.62 ▼3.16
Add New Post /wp-admin/post-new.php1,533 ▲1923.21 ▲5.72614.87 ▼92.7256.59 ▲6.51
Media Library /wp-admin/upload.php1,391 ▼04.23 ▲0.0198.31 ▲0.6543.39 ▼0.42
JaviBola Custom Theme Test /wp-admin/options-general.php?page=jbct8412.0124.9634.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • jbct_theme
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=jbct
    • > Notice in wp-content/plugins/javibola-custom-theme/javibola-custom-theme.php+68
    Undefined variable: theme
    • > GET request to /wp-admin/options-general.php?page=jbct
    • > Notice in wp-content/plugins/javibola-custom-theme/javibola-custom-theme.php+68
    Trying to get property 'template' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just 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 register_activation_hook() in wp-content/plugins/javibola-custom-theme/javibola-custom-theme.php:17

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

javibola-custom-theme/javibola-custom-theme.php Passed 13 tests

Analyzing the main PHP file in "JaviBola Custom Theme Test" version 2.0.5
63 characters long description:
Enabled a Custom Theme if admin is logged for a safely testing.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected142 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP141189
CSS10037
SVG10116

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin