78% apple-meta-tags

Code Review | Apple Meta Tags

WordPress plugin Apple Meta Tags scored78%from 54 tests.

About plugin

  • Plugin page: apple-meta-tags
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8
  • WordPress version: 6.3.1
  • First release: Jan 16, 2014
  • Latest release: Jan 16, 2014
  • Number of updates: 6
  • Update frequency: every 25.5 days
  • Top authors: sebd86 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,633 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
Installer ran successfully

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

A check of server-side resources used by Apple Meta Tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.24 ▲4.22
Dashboard /wp-admin3.34 ▲0.0449.20 ▲0.79
Posts /wp-admin/edit.php3.46 ▲0.1150.27 ▼1.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.90 ▲1.22
Media Library /wp-admin/upload.php3.25 ▲0.0235.98 ▼0.88
Apple Meta Tags /wp-admin/options-general.php?page=apple-meta-tags/apple-meta-tags.php3.2132.69

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

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

Browser metrics Passed 4 tests

Apple Meta Tags: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲20614.74 ▲0.391.74 ▼0.2844.64 ▲0.28
Dashboard /wp-admin2,350 ▲1626.43 ▲1.55133.05 ▲18.4040.75 ▼8.16
Posts /wp-admin/edit.php2,252 ▲1633.30 ▲1.3353.35 ▲18.0532.91 ▼3.25
Add New Post /wp-admin/post-new.php1,671 ▲15722.42 ▲4.83601.72 ▼99.2230.70 ▼19.59
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.0381.73 ▼16.0240.94 ▼4.86
Apple Meta Tags /wp-admin/options-general.php?page=apple-meta-tags/apple-meta-tags.php1,5103.1940.3728.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=apple-meta-tags/apple-meta-tags.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=apple-meta-tags/apple-meta-tags.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/apple-meta-tags/apple-meta-tags.php:20

User-side errors Passed 1 test

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

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:
  • Screenshots: Add an image for screenshot #1 (Settings Page.)
You can take inspiration from this readme.txt

apple-meta-tags/apple-meta-tags.php 92% from 13 tests

The entry point to "Apple Meta Tags" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected385 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14441299
PO File1344186

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin