84% meta-news-standout-tag

Code Review | Meta News & Standout tag

WordPress plugin Meta News & Standout tag scored84%from 54 tests.

About plugin

  • Plugin page: meta-news-standou...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Jul 27, 2016
  • Latest release: Mar 9, 2017
  • Number of updates: 31
  • Update frequency: every 7.3 days
  • Top authors: Condence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,997 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.61ms] Passed 4 tests

An overview of server-side resources used by Meta News & Standout tag
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.03 ▼2.60
Dashboard /wp-admin3.32 ▲0.0144.16 ▼4.78
Posts /wp-admin/edit.php3.37 ▲0.0142.83 ▼3.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.34 ▼3.54
Media Library /wp-admin/upload.php3.24 ▲0.0132.45 ▲0.78

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Meta News & Standout tag
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.67 ▼0.761.65 ▼0.1544.04 ▼7.07
Dashboard /wp-admin2,224 ▲335.82 ▲0.8994.51 ▼21.6839.19 ▼7.19
Posts /wp-admin/edit.php2,104 ▲182.06 ▲0.0635.63 ▼0.9833.25 ▼2.52
Add New Post /wp-admin/post-new.php5,478 ▲3,94519.29 ▼4.00836.74 ▲155.2865.13 ▲5.49
Media Library /wp-admin/upload.php1,406 ▲184.23 ▲0.0794.99 ▼16.6742.35 ▼5.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 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 50% 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
  • 4× 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/meta-news-standout-tag/inc/condence-post.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-news-standout-tag/inc/condence-adminlist.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/meta-news-standout-tag/index.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-news-standout-tag/inc/condence-metabox.php:2

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 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: seo, google news, standout, metaname

meta-news-standout-tag/index.php 85% from 13 tests

"Meta News & Standout tag" version 1.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("meta-news-standout-tag.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin446 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP41512236
PO File24372130
CSS14070
JavaScript10010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin