84% simple-halloween-decoration-for-your-page

Code Review | Simple Halloween Decoration For Your Page

WordPress plugin Simple Halloween Decoration For Your Page scored84%from 54 tests.

About plugin

  • Plugin page: simple-halloween-...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 18, 2020
  • Latest release: Apr 18, 2020
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: maxifink (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,402 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Simple Halloween Decoration For Your Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0338.93 ▼4.70
Dashboard /wp-admin3.38 ▲0.0148.45 ▼12.23
Posts /wp-admin/edit.php3.43 ▲0.0551.47 ▲2.83
Add New Post /wp-admin/post-new.php5.96 ▲0.04101.61 ▲4.91
Media Library /wp-admin/upload.php3.31 ▲0.0535.53 ▲1.55
Halloween /wp-admin/options-general.php?page=halloween-decoration3.2730.77

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Halloween Decoration For Your Page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.20 ▼1.361.80 ▼0.1441.05 ▼1.03
Dashboard /wp-admin2,210 ▲195.88 ▲0.97105.46 ▲2.2541.15 ▼0.02
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0540.00 ▲0.5735.85 ▼1.59
Add New Post /wp-admin/post-new.php1,536 ▲223.46 ▲0.41622.64 ▼8.0147.62 ▼3.10
Media Library /wp-admin/upload.php1,386 ▼24.20 ▼0.0293.67 ▼2.8240.87 ▼1.98
Halloween /wp-admin/options-general.php?page=halloween-decoration8792.1925.2830.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-halloween-decoration-for-your-page/halloween.php:179

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 93% 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
3 plugin tags: easter egg, spiders, halloween

simple-halloween-decoration-for-your-page/halloween.php 85% from 13 tests

The entry point to "Simple Halloween Decoration For Your Page" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-halloween-decoration-for-your-page.php" instead of "halloween.php")
  • 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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected226 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16025193
JavaScript10533

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin