10% pagemeta

Code Review | Page Meta

WordPress plugin Page Meta scored10%from 54 tests.

About plugin

  • Plugin page: pagemeta
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.2-3.5.2
  • WordPress version: 6.3.1
  • First release: Oct 14, 2009
  • Latest release: Mar 20, 2013
  • Number of updates: 39
  • Update frequency: every 32.1 days
  • Top authors: 36flavours (76.92%)stvwhtly (25.64%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /30,724 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/pagemeta/index.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; PageMeta has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼56.34ms] Passed 4 tests

An overview of server-side resources used by Page Meta
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.366.09 ▼38.48
Dashboard /wp-admin2.12 ▼1.235.75 ▼56.55
Posts /wp-admin/edit.php2.12 ▼1.246.34 ▼45.80
Add New Post /wp-admin/post-new.php2.12 ▼3.778.12 ▼84.51
Media Library /wp-admin/upload.php2.12 ▼1.115.90 ▼28.88

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
pagemeta
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Page Meta
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.73 ▲0.361.80 ▲0.0743.43 ▲1.87
Dashboard /wp-admin2,189 ▲125.54 ▼0.0788.14 ▼2.4842.29 ▼1.50
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0237.48 ▲0.5034.72 ▼0.12
Add New Post /wp-admin/post-new.php6,288 ▲4,74226.15 ▲3.09909.46 ▲311.0658.44 ▲10.73
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.0596.02 ▼17.7842.95 ▼5.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/pagemeta/index.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; PageMeta has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pagemeta/panel.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pagemeta/index.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (The Page Meta panel displayed below the content editor.), #2 (Settings are managed via the Settings > Reading page.)
You can look at the official readme.txt

pagemeta/index.php 92% from 13 tests

The primary PHP file in "Page Meta" version 1.5.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pagemeta.php" instead of "index.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
Good job! No executable or dangerous file extensions detected245 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP323123245

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.22KB7.89KB▼ 44.56%
screenshot-2.png24.33KB11.14KB▼ 54.20%