10% all-in-one-metadata

Code Review | All in one metadata

WordPress plugin All in one metadata scored10%from 54 tests.

About plugin

  • Plugin page: all-in-one-metadata
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 14, 2018
  • Latest release: Sep 4, 2018
  • Number of updates: 13
  • Update frequency: every 1.7 days
  • Top authors: colomet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /825 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/all-in-one-metadata/admin/adminFunctions/class-pressbooks-metadata-site-cpt.php+148
    include_once(wp-content/plugins/pressbooks/pressbooks.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.94MB] [CPU: ▼56.81ms] Passed 4 tests

An overview of server-side resources used by All in one metadata
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.423.98 ▼32.29
Dashboard /wp-admin2.06 ▼1.245.43 ▼41.44
Posts /wp-admin/edit.php2.07 ▼1.295.76 ▼56.98
Add New Post /wp-admin/post-new.php2.06 ▼3.824.85 ▼96.51
Media Library /wp-admin/upload.php2.06 ▼1.167.78 ▼27.09
General Settings /wp-admin/admin.php?page=pressbooks_metadata_settings2.075.20
Site-Meta /wp-admin/post-new.php?post_type=site-meta2.076.58
Site Metadata /wp-admin/edit.php?post_type=site-meta2.075.46
Post Metadata /wp-admin/admin.php?page=post_meta_settings2.076.64

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 132 new files
Database: no new tables, 14 new options
New WordPress options
corporation_type_site-meta_level_thing_properties_dis
theysaidso_admin_options
schema_properties_corporation_type_site-meta_level
widget_recent-comments
parent_filter_settings
post_schemaTypes\Pressbooks_Metadata_Organization
corporation_type_site-meta_level_organization_properties_dis
widget_theysaidso_widget
schema_locations
site-meta_schemaTypes\Pressbooks_Metadata_Organization
...

Browser metrics Passed 4 tests

An overview of browser requirements for All in one metadata
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲19413.60 ▼0.785.17 ▲3.3741.59 ▼1.70
Dashboard /wp-admin2,244 ▲535.90 ▲1.04114.76 ▲12.4039.28 ▲0.89
Posts /wp-admin/edit.php2,459 ▲3673.51 ▲1.54109.94 ▲73.2832.89 ▲0.19
Add New Post /wp-admin/post-new.php1,577 ▲5523.47 ▲0.34712.22 ▲58.0136.25 ▼21.47
Media Library /wp-admin/upload.php1,426 ▲384.16 ▼0.0487.32 ▼23.0745.05 ▼1.27
General Settings /wp-admin/admin.php?page=pressbooks_metadata_settings2,4682.4252.2931.79
Site-Meta /wp-admin/post-new.php?post_type=site-meta1,4584.0163.6228.07
Site Metadata /wp-admin/edit.php?post_type=site-meta1,4313.5051.4228.19
Post Metadata /wp-admin/admin.php?page=post_meta_settings1,0062.1536.0729.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/all-in-one-metadata/admin/adminFunctions/class-pressbooks-metadata-site-cpt.php+148
    include_once(wp-content/plugins/pressbooks/pressbooks.php): failed to open stream: No such file or directory
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 627 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=post_meta_settings
    • > Warning in wp-content/plugins/all-in-one-metadata/admin/adminFunctions/class-pressbooks-metadata-site-cpt.php+148
    include_once(wp-content/plugins/pressbooks/pressbooks.php): failed to open stream: No such file or directory
  • 627 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=post_meta_settings
    • > Warning in wp-content/plugins/all-in-one-metadata/admin/adminFunctions/class-pressbooks-metadata-site-cpt.php+148
    include_once(): Failed opening 'wp-content/plugins/pressbooks/pressbooks.php' for inclusion (include_path='.:/usr/share/php')

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/all-in-one-metadata/public/partials/pressbooks-metadata-public-display.php
  • 53× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-metadata/symbionts/custom-metadata/custom_metadata.php:106
    • > PHP Fatal error
      Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-photograph.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-message.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-mediaObject.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-dataset.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/organization/class-pressbooks-metadata-corporation.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-article.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-howTo.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/organization/class-pressbooks-metadata-governmentOrganization.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'schemaTypes\\Pressbooks_Metadata_Type' not found in wp-content/plugins/all-in-one-metadata/admin/schemaTypes/creativeWorks/class-pressbooks-metadata-webPage.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
5 plugin tags: metadata, schema, schemaorg, rich snippets, structured data

all-in-one-metadata/all-in-one-metadata.php Passed 13 tests

The primary PHP file in "All in one metadata" version 1.0.0 is used by WordPress to initiate all plugin functionality
85 characters long description:
This plugin adds metadata to wordpress and also has support for the pressbooks plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected8,403 lines of code in 106 files:
LanguageFilesBlank linesComment linesLines of code
PHP951,6724,7586,562
CSS5161741,396
JavaScript58092436
Markdown1609

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.08
▷ Minimum class complexity1.00
▷ Maximum class complexity241.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity71.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes83
▷ Abstract classes00.00%
▷ Concrete classes83100.00%
▷ Final classes00.00%
Methods381
▷ Static methods174.46%
▷ Public methods36194.75%
▷ Protected methods00.00%
▷ Private methods205.25%
Functions19
▷ Named functions736.84%
▷ Anonymous functions1263.16%
Constants12
▷ Global constants541.67%
▷ Class constants758.33%
▷ Public constants7100.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
17 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
symbionts/custom-metadata/css/images/ui-icons_888888_256x240.png4.10KB4.11KB0.00%
symbionts/custom-metadata/css/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
symbionts/custom-metadata/css/images/ui-bg_flat_0_aaaaaa_40x100.png0.08KB0.08KB0.00%
symbionts/custom-metadata/css/images/ui-icons_2e83ff_256x240.png4.10KB4.11KB0.00%
symbionts/custom-metadata/css/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%