84% apt-rich-snippets

Code Review | APT Rich Snippets - Get rich snippets for your site on Google

WordPress plugin APT Rich Snippets - Get rich snippets for your site on Google scored 84% from 54 tests.

About plugin

  • Plugin page: apt-rich-snippets
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4.2
  • WordPress version: 5.8.1
  • First release: May 22, 2013
  • Latest release: May 22, 2013
  • Number of updates: 2
  • Update frequency: every 18.5 days
  • Top authors: APTOnline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,498 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.22MB] [CPU: ▼154.69ms] Passed 4 tests

Server-side resources used by APT Rich Snippets - Get rich snippets for your site on Google
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1131.03 ▼4.53
Dashboard /wp-admin3.20 ▲0.1444.90 ▼2.71
Posts /wp-admin/edit.php3.25 ▲0.1444.09 ▼0.77
Add New Post /wp-admin/post-new.php4.18 ▼1.2547.03 ▼610.65
Media Library /wp-admin/upload.php3.14 ▲0.1435.44 ▼0.86
APT Rich Snippets /wp-admin/options-general.php?page=apt-rich-snippets/aptmicrodata.php3.1130.34

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
aptmicrodata_text
aptmicrodata_border
aptmicrodata_width
aptmicrodata_background
aptmicrodata_display
aptmicrodata_link
aptmicrodata_padding

Browser metrics Passed 4 tests

An overview of browser requirements for APT Rich Snippets - Get rich snippets for your site on Google
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9315.89 ▲0.3811.13 ▲2.4345.19 ▼2.52
Dashboard /wp-admin2,972 ▲355.91 ▼0.03164.00 ▲9.51115.26 ▲9.07
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0066.92 ▼9.58104.78 ▲16.07
Add New Post /wp-admin/post-new.php1,968 ▲28524.21 ▲5.45385.43 ▼12.58118.49 ▲14.08
Media Library /wp-admin/upload.php1,812 ▲25.01 ▼0.02162.90 ▼6.40124.39 ▲10.88
APT Rich Snippets /wp-admin/options-general.php?page=apt-rich-snippets/aptmicrodata.php1,2432.0558.8975.17

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • aptmicrodata_link
    • aptmicrodata_padding
    • aptmicrodata_width
    • aptmicrodata_border
    • aptmicrodata_text
    • aptmicrodata_background
    • aptmicrodata_display

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apt-rich-snippets/output.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apt-rich-snippets/output.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: smartphone, iphone, tablet, mobile, publish...

apt-rich-snippets/aptmicrodata.php 92% from 13 tests

The principal PHP file in "APT Rich Snippets - Get rich snippets for your site on Google" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("apt-rich-snippets.php" instead of "aptmicrodata.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
No dangerous file extensions were detected922 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP219228894
JavaScript119028

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
star_half_24.png1.34KB1.13KB▼ 15.19%
star_24.png1.30KB1.12KB▼ 13.69%