89% professione-architetto-news

Code Review | professione Architetto News

WordPress plugin professione Architetto News scored89%from 54 tests.

About plugin

  • Plugin page: professione-archi...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.5
  • WordPress version: 6.3.1
  • First release: Jan 16, 2017
  • Latest release: Apr 11, 2018
  • Number of updates: 8
  • Update frequency: every 56.0 days
  • Top authors: labdav (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /647 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.73ms] Passed 4 tests

Analyzing server-side resources used by professione Architetto News
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.94 ▼0.79
Dashboard /wp-admin3.36 ▲0.0548.95 ▲3.30
Posts /wp-admin/edit.php3.41 ▲0.0547.01 ▼10.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.07 ▼8.93
Media Library /wp-admin/upload.php3.28 ▲0.0534.37 ▼2.46

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_professionearchitetto_news
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for professione Architetto News
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.44 ▲0.081.79 ▼0.1742.85 ▼0.02
Dashboard /wp-admin2,209 ▲215.85 ▲0.9895.60 ▼17.8039.05 ▼2.61
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0433.52 ▼6.7633.64 ▼3.38
Add New Post /wp-admin/post-new.php1,533 ▲1923.06 ▲5.36647.83 ▼51.7957.53 ▲3.44
Media Library /wp-admin/upload.php1,382 ▼94.21 ▲0.01100.23 ▼2.9141.40 ▼5.30

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_professionearchitetto_news
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
5 plugin tags: concorsi, news, architettura, professione architetto, design

professione-architetto-news/professionearchitetto-news.php 85% from 13 tests

This is the main PHP file of "professione Architetto News" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("professione-architetto-news.php" instead of "professionearchitetto-news.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected221 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13718182
PO File16213739

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin