90% resume-cv-block

Code Review | Resume CV Block

WordPress plugin Resume CV Block scored90%from 54 tests.

About plugin

  • Plugin page: resume-cv-block
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Jul 17, 2020
  • Latest release: Aug 29, 2020
  • Number of updates: 11
  • Update frequency: every 3.9 days
  • Top authors: victortihai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,760 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.25MB] [CPU: ▼21.13ms] Passed 4 tests

Server-side resources used by Resume CV Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.51 ▼6.46
Dashboard /wp-admin3.33 ▼0.0248.18 ▼16.25
Posts /wp-admin/edit.php3.38 ▲0.0251.53 ▲3.62
Add New Post /wp-admin/post-new.php4.84 ▼1.0447.42 ▼59.44
Media Library /wp-admin/upload.php3.25 ▲0.0232.40 ▼2.36

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Resume CV Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.73 ▲0.391.88 ▲0.3240.25 ▼4.53
Dashboard /wp-admin2,198 ▲185.65 ▼0.0293.68 ▲4.0842.52 ▲5.28
Posts /wp-admin/edit.php2,100 ▲32.11 ▲0.1038.27 ▲1.2035.25 ▼1.14
Add New Post /wp-admin/post-new.php6,206 ▲4,68026.34 ▲3.35908.79 ▲216.1354.71 ▼15.37
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.10100.06 ▼16.3643.85 ▼3.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
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
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #2, #3 in resume-cv-block/assets to your readme.txt
You can look at the official readme.txt

resume-cv-block/resume-cv-block.php Passed 13 tests

This is the main PHP file of "Resume CV Block" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
Resume / CV — is a Gutenberg bloc plugin to help you to created a nice Resume.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected373 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS28103213
JavaScript1269483
PHP3236277

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin