84% page-creator

Code Review | Page Creator

WordPress plugin Page Creator scored84%from 54 tests.

About plugin

  • Plugin page: page-creator
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6.2
  • WordPress version: 6.3.1
  • First release: Apr 10, 2016
  • Latest release: Mar 3, 2021
  • Number of updates: 6
  • Update frequency: every 299.5 days
  • Top authors: rich_ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,304 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.01MB] [CPU: ▼7.47ms] Passed 4 tests

A check of server-side resources used by Page Creator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.30 ▼5.07
Dashboard /wp-admin3.32 ▲0.0247.22 ▼5.10
Posts /wp-admin/edit.php3.37 ▲0.0148.71 ▲5.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.91 ▼20.27
Media Library /wp-admin/upload.php3.24 ▲0.0134.58 ▲0.57
Page Creator /wp-admin/options-general.php?page=page-creator3.2132.98

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Page Creator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.26 ▼0.201.87 ▲0.1338.74 ▼4.56
Dashboard /wp-admin2,196 ▲195.54 ▼0.1080.85 ▼17.4937.70 ▼3.07
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0335.16 ▼6.2333.61 ▼6.10
Add New Post /wp-admin/post-new.php1,529 ▼223.81 ▲1.11691.32 ▲47.9755.80 ▲12.01
Media Library /wp-admin/upload.php1,404 ▲44.28 ▲0.0693.61 ▼13.1740.96 ▼3.70
Page Creator /wp-admin/options-general.php?page=page-creator8982.0122.6726.97

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 were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • 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
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-creator/index.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: pages

page-creator/index.php 92% from 13 tests

The primary PHP file in "Page Creator" version 0.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("page-creator.php" instead of "index.php")

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
There were no executable files found in this plugin105 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1298105

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions3
▷ Named functions3100.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