84% giornalismo-story-details

Code Review | Giornalismo Story Details

WordPress plugin Giornalismo Story Details scored84%from 54 tests.

About plugin

  • Plugin page: giornalismo-story...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Jul 3, 2015
  • Latest release: Nov 14, 2017
  • Number of updates: 9
  • Update frequency: every 96.1 days
  • Top authors: ArenaPigskin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,033 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Giornalismo Story Details
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.57 ▼7.19
Dashboard /wp-admin3.31 ▲0.0140.32 ▼6.47
Posts /wp-admin/edit.php3.36 ▲0.0149.06 ▼1.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.13 ▼9.09
Media Library /wp-admin/upload.php3.23 ▲0.0135.51 ▼1.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Giornalismo Story Details
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.67 ▼0.691.55 ▼0.2438.38 ▼9.07
Dashboard /wp-admin2,203 ▲545.03 ▼0.62115.47 ▲7.6942.13 ▼0.47
Posts /wp-admin/edit.php2,089 ▲32.05 ▼0.0139.14 ▲3.0633.75 ▼1.26
Add New Post /wp-admin/post-new.php6,242 ▲4,71419.09 ▲0.90884.48 ▲188.8058.46 ▲0.53
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0594.50 ▼10.3040.89 ▼4.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at 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 load_plugin_textdomain() in wp-content/plugins/giornalismo-story-details/giornalismo-story-details.php:13

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

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: custom write panel, giornalismo

giornalismo-story-details/giornalismo-story-details.php Passed 13 tests

Analyzing the main PHP file in "Giornalismo Story Details" version 1.0.1
138 characters long description:
Adds custom fields for the Giornalismo WordPress theme for featured photo credit, caption, featured video link and three story highlights.

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
No dangerous file extensions were detected353 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File67272283
PHP1191370

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin