90% code-meta

Code Review | Code Meta Opengraph Tag Generator

WordPress plugin Code Meta Opengraph Tag Generator scored90%from 54 tests.

About plugin

  • Plugin page: code-meta
  • Plugin version: 2.6.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Mar 27, 2023
  • Latest release: Jul 20, 2023
  • Number of updates: 16
  • Update frequency: every 7.5 days
  • Top authors: codemilitant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /384 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.90ms] Passed 4 tests

An overview of server-side resources used by Code Meta Opengraph Tag Generator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.93 ▼5.61
Dashboard /wp-admin3.44 ▲0.1356.28 ▲0.52
Posts /wp-admin/edit.php3.56 ▲0.2055.84 ▲6.90
Add New Post /wp-admin/post-new.php6.02 ▲0.13105.38 ▲7.91
Media Library /wp-admin/upload.php3.37 ▲0.1341.64 ▲1.79
Code Meta /wp-admin/admin.php?page=code-meta3.4539.08
Upgrade /wp-admin/admin.php?page=code-meta-upgrade3.3334.21

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
Activated_Plugin
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Code Meta Opengraph Tag Generator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.42 ▲0.302.13 ▲0.2947.76 ▲2.60
Dashboard /wp-admin2,217 ▲375.63 ▼0.0299.42 ▲10.5443.02 ▲5.86
Posts /wp-admin/edit.php2,125 ▲251.98 ▼0.0340.59 ▲1.1937.37 ▼0.06
Add New Post /wp-admin/post-new.php1,547 ▲2123.07 ▲0.19703.34 ▼5.0755.02 ▼2.22
Media Library /wp-admin/upload.php1,425 ▲224.19 ▲0.07106.12 ▲0.3844.99 ▼7.44
Code Meta /wp-admin/admin.php?page=code-meta8911.9923.8737.62
Upgrade /wp-admin/admin.php?page=code-meta-upgrade8721.9926.9731.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • Activated_Plugin
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: search engine rankings, seo, opengraph, meta tags

code-meta/code-meta.php Passed 13 tests

"Code Meta Opengraph Tag Generator" version 2.6.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
133 characters long description:
Code Meta tag generator will create the vital Opengraph meta tags required by search engines for proper SEO indexing of your website.

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 detected1,179 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP111411521,123
CSS11256

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity10.50
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces3
Interfaces0
Traits4
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods44
▷ Static methods2352.27%
▷ Public methods3579.55%
▷ Protected methods12.27%
▷ Private methods818.18%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.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