84% themerain-core

Code Review | ThemeRain Core

WordPress plugin ThemeRain Core scored84%from 54 tests.

About plugin

  • Plugin page: themerain-core
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 4, 2020
  • Latest release: Aug 11, 2023
  • Number of updates: 45
  • Update frequency: every 29.2 days
  • Top authors: themerain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /11,426 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.50MB] [CPU: ▲0.95ms] Passed 4 tests

Server-side resources used by ThemeRain Core
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.19 ▲1.7237.62 ▼3.23
Dashboard /wp-admin3.57 ▲0.2647.90 ▲1.30
Posts /wp-admin/edit.php3.69 ▲0.3354.28 ▲5.45
Add New Post /wp-admin/post-new.php7.02 ▲1.1385.79 ▲0.29
Media Library /wp-admin/upload.php3.50 ▲0.2645.05 ▲9.13
Custom Fonts /wp-admin/themes.php?page=themerain-fonts3.6438.00
Add New /wp-admin/post-new.php?post_type=project7.0282.62
Categories /wp-admin/edit-tags.php?taxonomy=project-category&post_type=project3.5037.52
All Projects /wp-admin/edit.php?post_type=project3.5541.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for ThemeRain Core
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲20621.17 ▲6.514.25 ▲2.5237.71 ▼9.13
Dashboard /wp-admin2,346 ▲17210.90 ▲5.23254.54 ▲157.6643.09 ▲0.17
Posts /wp-admin/edit.php2,282 ▲18210.70 ▲8.73102.27 ▲64.4535.30 ▲0.27
Add New Post /wp-admin/post-new.php6,416 ▲4,88728.33 ▲4.96811.98 ▲138.1740.34 ▼12.47
Media Library /wp-admin/upload.php1,568 ▲16512.65 ▲8.43139.32 ▲41.8740.27 ▼2.88
Custom Fonts /wp-admin/themes.php?page=themerain-fonts1,31011.97103.3027.84
Add New /wp-admin/post-new.php?post_type=project1,52716.94780.7431.91
Categories /wp-admin/edit-tags.php?taxonomy=project-category&post_type=project1,45010.4776.8428.10
All Projects /wp-admin/edit.php?post_type=project1,25610.5981.1727.81

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themerain-core/includes/customizer/customizer.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/themerain-core/includes/fonts/fonts-admin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/themerain-core/includes/portfolio/portfolio.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themerain-core/includes/meta-boxes/meta-boxes.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themerain-core/includes/custom-css/custom-css.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themerain-core/includes/blocks/blocks.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/themerain-core/includes/fonts/fonts.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% 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
1 plugin tags: themerain

themerain-core/themerain-core.php 92% from 13 tests

The entry point to "ThemeRain Core" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,703 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP10279321,114
CSS77920363
JavaScript66014225
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity27.00
▷ Minimum class complexity3.00
▷ Maximum class complexity65.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods54
▷ Static methods712.96%
▷ Public methods4990.74%
▷ Protected methods47.41%
▷ Private methods11.85%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin