10% tempesta-media-publishing

Code Review | Tempesta Media Publishing

WordPress plugin Tempesta Media Publishing scored10%from 54 tests.

About plugin

  • Plugin page: tempesta-media-pu...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.10-6.3
  • WordPress version: 6.3.1
  • First release: Apr 19, 2019
  • Latest release: Nov 7, 2023
  • Number of updates: 8
  • Update frequency: every 207.9 days
  • Top authors: alexandersharapov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /568 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/tempesta-media-publishing/model/core.php+263
    syntax error, unexpected end of file

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

Analyzing server-side resources used by Tempesta Media Publishing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.52 ▲2.59
Dashboard /wp-admin3.30 ▲0.0046.83 ▼5.14
Posts /wp-admin/edit.php3.36 ▲0.0046.51 ▼4.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.69 ▼16.29
Media Library /wp-admin/upload.php3.23 ▲0.0035.90 ▲2.16

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Tempesta Media Publishing: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.27 ▲0.251.82 ▼0.0443.23 ▼1.27
Dashboard /wp-admin2,192 ▲145.61 ▼0.0287.70 ▼30.1042.69 ▼4.47
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0236.09 ▲0.7737.47 ▲1.83
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.68664.67 ▼37.5053.68 ▼4.08
Media Library /wp-admin/upload.php1,400 ▼34.24 ▲0.0799.56 ▼1.2541.36 ▼0.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tempesta-media-publishing/admin/view/index.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tempesta-media-publishing/admin/view/options.php:14
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/tempesta-media-publishing/model/core.php on line 263
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tempesta-media-publishing/admin/view/metatags.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: publishing, seo, content

tempesta-media-publishing/tempesta-media.php 77% from 13 tests

The main PHP script in "Tempesta Media Publishing" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/language" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tempesta-media-publishing.php" instead of "tempesta-media.php")

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
No dangerous file extensions were detected686 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP18161598549
CSS110461
JavaScript14049
Markdown26027

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.17
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods32
▷ Static methods1031.25%
▷ Public methods2887.50%
▷ Protected methods00.00%
▷ Private methods412.50%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin