84% seo-meta

Code Review | SOCIAL.NINJA

WordPress plugin SOCIAL.NINJA scored84%from 54 tests.

About plugin

  • Plugin page: seo-meta
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.7
  • WordPress version: 6.3.1
  • First release: Jul 13, 2015
  • Latest release: Jan 23, 2017
  • Number of updates: 8
  • Update frequency: every 70.0 days
  • Top authors: AmauriC (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,229 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.74ms] Passed 4 tests

This is a short check of server-side resources used by SOCIAL.NINJA
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0625.30 ▼18.83
Dashboard /wp-admin3.33 ▲0.0243.30 ▼9.13
Posts /wp-admin/edit.php3.38 ▲0.0244.63 ▼2.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.95 ▼8.60
Media Library /wp-admin/upload.php3.25 ▲0.0237.03 ▲0.58

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SOCIAL.NINJA
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8014.77 ▲0.391.69 ▼0.3039.32 ▼4.28
Dashboard /wp-admin2,209 ▲215.88 ▲0.9698.07 ▼17.8837.83 ▼7.15
Posts /wp-admin/edit.php2,089 ▼01.96 ▼0.0434.90 ▼0.1939.83 ▲8.39
Add New Post /wp-admin/post-new.php1,544 ▲3018.29 ▲0.72613.59 ▼15.3156.67 ▼0.15
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0394.96 ▼8.8342.41 ▼3.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/seo-meta/seo-meta.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: google, digg, meta, pinterest, open graph...

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

The principal PHP file in "SOCIAL.NINJA" v. 0.2 is loaded by WordPress automatically on each request
82 characters long description:
Optimize your SEO with Open Graph meta tags, Twitter Cards and social share links.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected125 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1263494
CSS17031

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
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%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin