10% pagewhereyouwant

Code Review | PageWhereYouWant

WordPress plugin PageWhereYouWant scored10%from 54 tests.

About plugin

  • Plugin page: pagewhereyouwant
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-3.3.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2012
  • Latest release: Mar 20, 2012
  • Number of updates: 18
  • Update frequency: every 0.3 days
  • Top authors: glims (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,878 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/pagewhereyouwant/pagewhereyouwant-widget.php+203
    Function create_function() is deprecated

Server metrics [RAM: ▼1.87MB] [CPU: ▼54.80ms] Passed 4 tests

Analyzing server-side resources used by PageWhereYouWant
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.355.04 ▼39.20
Dashboard /wp-admin2.13 ▼1.176.65 ▼42.50
Posts /wp-admin/edit.php2.13 ▼1.225.64 ▼46.08
Add New Post /wp-admin/post-new.php2.13 ▼3.755.91 ▼91.42
Media Library /wp-admin/upload.php2.13 ▼1.095.50 ▼32.05

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_page_where_you_want
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for PageWhereYouWant
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.134.86 ▲3.0045.00 ▲3.00
Dashboard /wp-admin2,206 ▲185.79 ▲0.77117.77 ▲3.4642.68 ▼1.11
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0137.17 ▲3.2932.69 ▼5.00
Add New Post /wp-admin/post-new.php1,537 ▲2323.40 ▲5.71662.73 ▼20.7351.97 ▼4.48
Media Library /wp-admin/upload.php1,385 ▼34.20 ▲0.02111.04 ▼4.9548.09 ▼3.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/pagewhereyouwant/pagewhereyouwant-widget.php+203
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_page_where_you_want

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pagewhereyouwant/pagewhereyouwant-widget.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === pagewhereyouwant === )
The official readme.txt is a good inspiration

pagewhereyouwant/pagewhereyouwant-widget.php 92% from 13 tests

The main file in "PageWhereYouWant" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pagewhereyouwant.php" instead of "pagewhereyouwant-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin162 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12617162

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ 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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin